diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-08 03:41:30 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-08 03:44:45 +1200 |
commit | 9252e6ffc5f1c80f45ac8d18d16306d31fffce15 (patch) | |
tree | 11f336dc3c68327d1be4afe2145232d88d8adb1a /vim | |
parent | Switch to \\ (double-backslash) for local leader (diff) | |
download | dotfiles-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_cancel | 0 | ||||
-rw-r--r-- | vim/vimrc | 4 |
2 files changed, 2 insertions, 2 deletions
diff --git a/vim/bundle/insert_cancel b/vim/bundle/insert_cancel -Subproject c55d432ff756495c15032c22f6f8f57673569b4 +Subproject 8228d9f73730fb751ab7aab301bc07286b45a36 @@ -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 |