aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-02 11:02:25 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-02 11:02:25 +1200
commitcbaa10e9f4b2708ad1733f06992e68cba9d04296 (patch)
treed280f62e5609a89a75d4cdfc09a6838fa283bac5 /vim/vimrc
parentClear away stock vim ftplugin's buffer maps (diff)
downloaddotfiles-cbaa10e9f4b2708ad1733f06992e68cba9d04296.tar.gz
dotfiles-cbaa10e9f4b2708ad1733f06992e68cba9d04296.zip
Add insert_cancel.vim plugin and configuration
Diffstat (limited to 'vim/vimrc')
-rw-r--r--vim/vimrc4
1 files changed, 3 insertions, 1 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 29ddccec..80eef1e6 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -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