]> git.rmz.io Git - dotfiles.git/blobdiff - vim/vimrc
vim: add bindings for quit-another-window
[dotfiles.git] / vim / vimrc
index 2817a017e878e5401533e4ff85647096aab149ae..145b8ce7de5c10aefed607739cc3f7ff63b9badf 100644 (file)
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -10,7 +10,7 @@ set runtimepath& " reset rtp
 autocmd!
 
 set runtimepath+=$XDG_DATA_HOME/vim/vundle
-call vundle#rc('$XDG_DATA_HOME/vim')
+call vundle#begin('$XDG_DATA_HOME/vim')
 
 Plugin 'gmarik/vundle'
 
@@ -74,6 +74,8 @@ Plugin 'rdnetto/ycm-generator'
 " needs editing colorscheme
 " Plugin 'jeaye/color_coded'
 
+call vundle#end()
+
 " remove entries first
 set runtimepath -=$HOME/.vim
 set runtimepath -=$HOME/.vim/after
@@ -541,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
@@ -642,8 +652,8 @@ end
 nnoremap <silent> [unite]f :<C-u>Unite -start-insert file_rec/async<CR>
 
 " unite-buffer {{{3
-call unite#custom#default_action('buffer', 'goto')
-nnoremap <silent> [unite]b :<C-u>Unite buffer<CR>
+call unite#custom#default_action('buffer', 'open')
+nnoremap <silent> [unite]b :<C-u>Unite buffer:-<CR>
 
 " unite-menu {{{3
 let g:unite_source_menu_menus = {}