keymaps: Add C-d for :q
authorStefan Huber <shuber@sthu.org>
Tue, 21 Dec 2021 09:38:13 +0000 (10:38 +0100)
committerStefan Huber <shuber@sthu.org>
Tue, 21 Dec 2021 09:38:13 +0000 (10:38 +0100)
keymaps.vim

index d9356db44d5cea76b85299f44ff34956c15adff2..256bfc27d15e59b9039b009fd53f04abfe2e0053 100644 (file)
@@ -10,6 +10,9 @@ if has('clipboard')
     autocmd VimEnter * inoremap <C-v> <c-r>+
 endif
 
+" ctrl+d as EOF exits shells and the like. Add a keymap for the same here.
+nnoremap <C-d> :q<cr>
+
 nnoremap <C-p> :Denite file/rec<cr>
 nnoremap <space>/ :Denite grep:.<cr>
 nnoremap <space>s :Denite buffer<cr>