aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-08 03:41:30 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-08 03:44:45 +1200
commit9252e6ffc5f1c80f45ac8d18d16306d31fffce15 (patch)
tree11f336dc3c68327d1be4afe2145232d88d8adb1a /vim/vimrc
parentd4e6f023413ed4b3d5a51e75547110c037e31591 (diff)
downloaddotfiles-9252e6ffc5f1c80f45ac8d18d16306d31fffce15.tar.gz
dotfiles-9252e6ffc5f1c80f45ac8d18d16306d31fffce15.zip
Arrange for Ctrl-C to remap over Escape
This way, InsertLeave actually gets fired.
Diffstat (limited to 'vim/vimrc')
-rw-r--r--vim/vimrc4
1 files changed, 2 insertions, 2 deletions
diff --git a/vim/vimrc b/vim/vimrc
index d4989489..efea641d 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -167,9 +167,9 @@ endif
nnoremap <silent> <C-L> :<C-U>nohlsearch<CR><C-L>
vnoremap <silent> <C-L> :<C-U>nohlsearch<CR>gv<C-L>
-" Stack insert Ctrl-C to undo the escaped insert operation
+" Remap insert Ctrl-C to undo the escaped insert operation
" Default to not-quite-correct vim-tiny-compatible map if no plugin
-inoremap <Plug>InsertCancel <C-C>u
+inoremap <Plug>InsertCancel <Esc>u
imap <C-C> <Plug>InsertCancel
" Remap normal J to stay in place while joining lines