insert_cancel.vim : Cancel an insert mode operation
| script karma
Downloaded by 57
Comments, bugs, improvements
script versions (upload new version)
|This plugin provides a mapping target to cancel an insert operation. It leaves insert mode normally, firing InsertLeave, and then runs :undo if the buffer was changed by the insert. This is intended as a remap of Ctrl-C in insert mode.
|Drop plugin/insert_cancel.vim in your ~/.vim/plugin directory. Add doc/insert_cancel.txt in ~/.vim/doc if you want the help file. Otherwise, use your favourite Vim plugin package manager.
To remap insert CTRL-C to use this instead of its default function, you could put this in your vimrc:
imap <C-C> <Plug>(InsertCancel)
Click on the package to download.
ip used for rating: 126.96.36.199