0

I want to know if it's possible to delete a whole word or move around one word at a time when in INSERT mode, like in "regular" applications when pressing Ctrl and using the arrow keys jump one word at a time, or pressing Ctrl+DEL deletes a whole word.

Maybe plugins exist for this or plainly configuring .vimrc?

1

To delete the word before the cursor in insert mode, you can type Ctrl-W.

Vim has a handful of other insert mode shortcuts, and these are documented at :help ins-special-keys, and :help ins-special-special. Note that Ctrl + left/right are already mapped by default, but they don't necessarily work in all environments.

There are also a number of plugins that provide further such functionality in insert mode, e.g. rsi.vim, vim-emacs-bindings.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.