1

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?

plr
  • 115
  • 3

1 Answers1

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.

Rich
  • 31,891
  • 3
  • 72
  • 139