aboutsummaryrefslogtreecommitdiff
path: root/vimrc
diff options
context:
space:
mode:
authorMiquel Sabaté <mikisabate@gmail.com>2014-11-17 09:32:00 +0100
committerMiquel Sabaté <mikisabate@gmail.com>2014-11-17 09:32:00 +0100
commit82414ab5b569de2503a759f22ad88f66132d0ef3 (patch)
tree720de0858cf55f363069b2998812e544cb45ee93 /vimrc
parentbadcc9c23a8abfa5bc97857c8ed3d41e1c4ecbb4 (diff)
downloaddotfiles-82414ab5b569de2503a759f22ad88f66132d0ef3.tar.gz
dotfiles-82414ab5b569de2503a759f22ad88f66132d0ef3.zip
vim: do nothing when <C-z> gets pressed in either normal or insert mode.
It's extremely *shitty* that <C-z> stops the current `vim` process. Why in seven hells would I want to do that ? This has bitten me in the ass a couple of times already when missing at pressing <C-x>.
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc7
1 files changed, 6 insertions, 1 deletions
diff --git a/vimrc b/vimrc
index 8670983..f44e20a 100644
--- a/vimrc
+++ b/vimrc
@@ -116,7 +116,7 @@ filetype indent plugin off
source ~/.vim/bundles.vim
" Enable plugins again.
-filetype plugin indent on
+filetype indent plugin on
""
" Everything regarding filetypes: indentation rules, gofmt & friends.
@@ -147,3 +147,8 @@ nnoremap <C-q> @q
" Pressing ^ in order to move to the first non-blank character is inconvenient.
nnoremap <leader>, ^
+" Do nothing when <C-z> is pressed. Why would I want to stop the current `vim`
+" process ? (especially shitty if you miss useful commands like <C-x> ...).
+nnoremap <C-z> <nop>
+inoremap <C-z> <nop>
+