]> git.rmz.io Git - dotfiles.git/blobdiff - vim/vimrc
vim: add bindings for quit-another-window
[dotfiles.git] / 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
 
 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
 " python-mode {{{2
 
 let g:pymode_rope_completion = 0