]> git.rmz.io Git - dotfiles.git/commitdiff
vim: add bindings for quit-another-window
authorSamir Benmendil <me@rmz.io>
Wed, 21 Oct 2015 15:37:14 +0000 (16:37 +0100)
committerSamir Benmendil <me@rmz.io>
Wed, 21 Oct 2015 15:37:14 +0000 (16:37 +0100)
vim/vimrc

index 6467ffa3197722ee58c242359c9e80d0b00dae90..145b8ce7de5c10aefed607739cc3f7ff63b9badf 100644 (file)
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -543,6 +543,14 @@ nmap <silent> cog <Plug>IndentGuidesToggle
 nmap <silent> [og <Plug>IndentGuidesEnable
 nmap <silent> ]og <Plug>IndentGuidesDisable
 
+" quit-another-window {{{2
+nnoremap <silent> <C-W>c  <NOP>
+nnoremap <silent> <C-W>cc <C-W>c
+nnoremap <silent> <C-W>ch :Qh<CR>
+nnoremap <silent> <C-W>cl :Ql<CR>
+nnoremap <silent> <C-W>cj :Qj<CR>
+nnoremap <silent> <C-W>ck :Qk<CR>
+
 " python-mode {{{2
 
 let g:pymode_rope_completion = 0