aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--_vim/vimrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/_vim/vimrc b/_vim/vimrc
index 5574c0d..3b87fb9 100644
--- a/_vim/vimrc
+++ b/_vim/vimrc
@@ -298,11 +298,17 @@ inoremap <F1> <Esc>
vnoremap <leader>y "+y
noremap <leader>p "+p
+
+"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
+" => Plugin settings
+"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Mappings for vim-fugitive
nnoremap <leader>gs :Gstatus<cr>
nnoremap <leader>gd :Gdiff<cr>
nnoremap <leader>gb :Gblame<cr>
+autocmd BufReadPost fugitive://* setlocal bufhidden=delete
+
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Helper functions