diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2013-09-07 15:49:58 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2013-09-07 15:49:58 +1200 |
commit | 5880287ba0f27ab80714a2527328434349383b86 (patch) | |
tree | c467e64d339772b20d546d54eeafce1ebec80086 /vim | |
parent | Typographical corrections (diff) | |
download | dotfiles-5880287ba0f27ab80714a2527328434349383b86.tar.gz dotfiles-5880287ba0f27ab80714a2527328434349383b86.zip |
Rebind ^C in Vim to also undo current insert op
15:44:34 <tyrmored> is there already an insert mode binding that cancels
the current insert operation entirely?
15:44:53 <tyrmored> (and returns you to normal mode)
15:45:09 <paradigm> I think you want either <esc> or ctrl-c
15:45:12 <jamessan> <C-c>u
15:45:31 <paradigm> then u, yes
15:45:33 <tyrmored> jamessan: yeah, see, i have <C-c> bound to <C-c>u,
which is great
15:45:41 <tyrmored> but i was wondering if i'm repeating a binding that
already exists
15:45:46 <jamessan> nope
15:45:51 <tyrmored> great
Diffstat (limited to 'vim')
-rw-r--r-- | vim/vimrc | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -101,6 +101,10 @@ set complete-=i " which I simply don't use inoremap <C-F> <C-X><C-F> +" Rebind Ctrl-C in insert mode to not only leave insert mode without firing +" InsertLeave events, but also to actually undo the current insert operation +inoremap <C-c> <C-c>u + " Vim lacks a built-in digraph for an ellipsis character (three dots); I like " to use the proper character in UTF-8 HTML documents so I nicked this from " Tim Pope |