Is there a way to forward-delete in insert-mode in vim?
Is there a way to forward-delete in insert-mode in vim? I'm using a MacVim. I tried "Control-D", but it obviously doesn't work. I'm searching the official documentation, but cannot find. Any help would be appreciated.
Solution 1:
Its the fn key and backspace (<X)) or alt and backspace (<X)).
Solution 2:
The beauty of Vim is its portability! Keep it agnostic.
inoremap <C-d> <Esc>lxi
edit: KISS even better!
inoremap <C-d> <Del>
Solution 3:
You may enter in the quick-command mode (<C-o>
) and then forward-delete (<S-c>
or <S-d>
).