Bundle 'tpope/vim-surround'
Bundle 'tpope/vim-unimpaired'
Bundle 'valloric/youcompleteme'
-Bundle 'zhaocai/goldenview.vim'
+"Bundle 'zhaocai/goldenview.vim'
Bundle 'ompugao/ros.vim'
Bundle 'ompugao/ctrlp-ros'
noremap <Right> <NOP>
set nostartofline " don't move the cursor to the first non-blank char of a line
-set path=.,** " current + subdirectory search for :find, :grep:, ...
+set path=.,include/,../include/,/usr/include/c++/*,/opt/ros/hydro/include
" displaying text {{{1
set scrolloff=5 " number of screen lines to show around the cursor
map <F1> :ls<CR>:b<space>
+nmap <C-L> <C-W>w
+nmap <C-H> <C-W>W
+
" using the mouse {{{1
set mouse=rnv " list of flags for using the mouse
set ttymouse=xterm " type of mouse
let g:airline#extensions#tabline#enabled = 1
" GoldenView {{{2
-let g:goldenview__enable_default_mapping = 0
-nmap <silent> <C-N> <Plug>GoldenViewSplit
-nmap <silent> <C-L> <Plug>GoldenViewNext
-nmap <silent> <C-H> <Plug>GoldenViewPrevious
-nmap <silent> <C-M> <Plug>GoldenViewSwitchMain
-nmap <silent> <C-S-M> <Plug>GoldenViewPrevious
+"let g:goldenview__enable_default_mapping = 0
+"nmap <silent> <C-N> <Plug>GoldenViewSplit
+"nmap <silent> <C-L> <Plug>GoldenViewNext
+"nmap <silent> <C-H> <Plug>GoldenViewPrevious
+"nmap <silent> <C-M> <Plug>GoldenViewSwitchMain
+"nmap <silent> <C-S-M> <Plug>GoldenViewPrevious
" Gundo {{{2
nnoremap <F7> :GundoToggle<CR>
" fugitive {{{2
nmap <silent> <leader>dd :tab split \| Gdiff \| wincmd h<CR>
+" delete fugitive buffers when closed
+autocmd BufReadPost fugitive://* set bufhidden=delete
" NERDTree {{{2
" open/close NERDTree with \e
let g:Tex_DefaultTargetFormat='pdf'
" functions {{{1
+" auto source vimrc when saved
+autocmd bufwritepost vimrc source $MYVIMRC
+nmap <leader>v :tabedit $MYVIMRC<CR>
+
" Convenient command to see the difference between the current buffer and the
" file it was loaded from, thus the changes you made.
" Only define it when not defined already.