diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-02 11:02:25 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-02 11:02:25 +1200 |
commit | cbaa10e9f4b2708ad1733f06992e68cba9d04296 (patch) | |
tree | d280f62e5609a89a75d4cdfc09a6838fa283bac5 /vim | |
parent | Clear away stock vim ftplugin's buffer maps (diff) | |
download | dotfiles-cbaa10e9f4b2708ad1733f06992e68cba9d04296.tar.gz dotfiles-cbaa10e9f4b2708ad1733f06992e68cba9d04296.zip |
Add insert_cancel.vim plugin and configuration
Diffstat (limited to 'vim')
m--------- | vim/bundle/insert_cancel | 0 | ||||
-rw-r--r-- | vim/vimrc | 4 |
2 files changed, 3 insertions, 1 deletions
diff --git a/vim/bundle/insert_cancel b/vim/bundle/insert_cancel new file mode 160000 +Subproject ec0551228a91752d2be5f9d771e2cb5a624e6ba @@ -168,7 +168,9 @@ endif noremap <silent> <C-L> :<C-U>nohlsearch<CR><C-L> " Stack insert Ctrl-C to undo the escaped insert operation -inoremap <C-C> <C-C>u +" Default to not-quite-correct vim-tiny-compatible map if no plugin +inoremap <Plug>InsertCancel <C-C>u +imap <C-C> <Plug>InsertCancel " Remap normal J to stay in place while joining lines if &loadplugins |