diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-11 15:54:13 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-11 15:54:13 +1200 |
commit | d71a8420073e6ee391cee7e2bd5ec4a3933603a7 (patch) | |
tree | 8680540b220919f45e2bf182103b440973a89e3a | |
parent | Inline scroll_next.vim plugin (diff) | |
download | dotfiles-d71a8420073e6ee391cee7e2bd5ec4a3933603a7.tar.gz dotfiles-d71a8420073e6ee391cee7e2bd5ec4a3933603a7.zip |
Adjust my complaint about i_CTRL-C
-rw-r--r-- | vim/vimrc | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -1008,13 +1008,13 @@ endtry nnoremap <expr> <Space> \ line('w$') < line('$') ? "\<PageDown>" : ":\<C-U>next\<CR>" -" I hate CTRL-C in insert mode, which ends the insert session without firing -" the InsertLeave event for automatic command hooks. It seems worse than -" useless; why would you want that? It breaks plugins that hinge on mirrored -" functionality between the InsertEnter and InsertLeave automatic command -" events, and doesn't otherwise do anything different from Escape. Even -" worse, people think it's a *synonym* for Escape, and use it because it's -" easier to reach than the Escape key or CTRL-[. It's terrible! +" I hate CTRL-C's default insert mode behaviour. It ends the insert session +" without firing the InsertLeave event for automatic command hooks. Why would +" anyone want that? It breaks plugins that hinge on mirrored functionality +" between the InsertEnter and InsertLeave events, and doesn't otherwise differ +" from Escape or :stopinsert. Even worse, people think it's a *synonym* for +" Escape, and use it because it's easier to reach than the Escape key or +" CTRL-[. Terrible! " " Instead, I apply a custom plugin named insert_cancel.vim to make it cancel " the current insert operation; that is, if the buffer has changed at all |