]> git.rmz.io Git - dotfiles.git/blobdiff - vim/vimrc
vim/cpp: fix fswitch for cadscan
[dotfiles.git] / vim / vimrc
index 2817a017e878e5401533e4ff85647096aab149ae..6f5ea2e9f713ceb97549d2d757b765ccaec39c56 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
@@ -434,6 +436,7 @@ nnoremap zx zMzxzt
 
 map <F1> :ls<CR>:b<space>
 
+" move between windows
 nnoremap <C-L> <C-W>w
 nnoremap <C-H> <C-W>W
 
@@ -541,6 +544,14 @@ nmap <silent> cog <Plug>IndentGuidesToggle
 nmap <silent> [og <Plug>IndentGuidesEnable
 nmap <silent> ]og <Plug>IndentGuidesDisable
 
+" close-another-window {{{2
+nnoremap <silent> <C-W>c  <NOP>
+nnoremap <silent> <C-W>cc <C-W>c
+nnoremap <silent> <C-W>ch :CloseLeftWindow<CR>
+nnoremap <silent> <C-W>cl :CloseRightWindow<CR>
+nnoremap <silent> <C-W>cj :CloseBelowWindow<CR>
+nnoremap <silent> <C-W>ck :CloseAboveWindow<CR>
+
 " python-mode {{{2
 
 let g:pymode_rope_completion = 0
@@ -642,8 +653,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 = {}