X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/4455d479ce77e19d8a4944a2444069a477c92ecb..8a5f4add378f794a5e1bdfd7b552d53aa3d1efa9:/vim/vimrc diff --git a/vim/vimrc b/vim/vimrc index 8728936..788e3df 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -273,6 +273,8 @@ nmap GoldenViewPrevious nnoremap :GundoToggle " fugitive {{{2 nmap dd :tab split \| Gdiff \| wincmd h +" delete fugitive buffers when closed +autocmd BufReadPost fugitive://* set bufhidden=delete " NERDTree {{{2 " open/close NERDTree with \e @@ -305,7 +307,7 @@ let g:tagbar_width = 25 let g:tagbar_iconchars = ['+', '-'] " YouCompleteMe {{{2 -let g:ycm_extra_conf_globlist = ['/mnt/data/src/*'] +let g:ycm_extra_conf_globlist = ['~/src/*'] " vim-json {{{2 let g:vim_json_syntax_conceal = 0 @@ -315,6 +317,10 @@ let g:tex_flavor='latex' let g:Tex_DefaultTargetFormat='pdf' " functions {{{1 +" auto source vimrc when saved +autocmd bufwritepost vimrc source $MYVIMRC +nmap v :tabedit $MYVIMRC + " 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.