aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim')
-rw-r--r--vim/vimrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 3c6de16e..652cc529 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -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