aboutsummaryrefslogtreecommitdiff
path: root/vim
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
parentSwitch to \\ (double-backslash) for local leader (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')
m---------vim/bundle/insert_cancel0
-rw-r--r--vim/vimrc4
2 files changed, 2 insertions, 2 deletions
diff --git a/vim/bundle/insert_cancel b/vim/bundle/insert_cancel
-Subproject c55d432ff756495c15032c22f6f8f57673569b4
+Subproject 8228d9f73730fb751ab7aab301bc07286b45a36
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