From 9252e6ffc5f1c80f45ac8d18d16306d31fffce15 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 8 Jul 2018 03:41:30 +1200 Subject: Arrange for Ctrl-C to remap over Escape This way, InsertLeave actually gets fired. --- vim/bundle/insert_cancel | 2 +- vim/vimrc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/vim/bundle/insert_cancel b/vim/bundle/insert_cancel index c55d432f..8228d9f7 160000 --- a/vim/bundle/insert_cancel +++ b/vim/bundle/insert_cancel @@ -1 +1 @@ -Subproject commit c55d432ff756495c15032c22f6f8f57673569b4b +Subproject commit 8228d9f73730fb751ab7aab301bc07286b45a36b diff --git a/vim/vimrc b/vim/vimrc index d4989489..efea641d 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -167,9 +167,9 @@ endif nnoremap :nohlsearch vnoremap :nohlsearchgv -" 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 InsertCancel u +inoremap InsertCancel u imap InsertCancel " Remap normal J to stay in place while joining lines -- cgit v1.2.3