Ctl-Del Like in Vim
I really like the CTRL-W key in Vim insert mode, but I also need something like CTRL-Del in normal editing. 开发者_运维技巧Any idea if this exist, or how to implement it?
Also, how about a similar thing for CTRL-H?! I mean something exactly like Del key, but as easy as CTRL-H.
dW
in normal mode is the closest to CTRL+Del behaviour.
If you really want something like Delete in Insert mode, why not just make a mapping for it?
:inoremap <C-J> <C-O>x
<c-o>dw
will mess in "stuf<cursor>f secondword
" and in "stuff<cursor> secondword
".
I use <space><esc>ce
which works well.
精彩评论