aboutsummaryrefslogtreecommitdiffstats
path: root/_vim/vimrc
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-12-29 23:53:30 +0800
committerAaron LI <aly@aaronly.me>2018-12-29 23:53:30 +0800
commit1e82c625808539313df502eb69fd624311b1d68a (patch)
tree2ec1615e858928005fd11f9b15b9c3b972b1ff45 /_vim/vimrc
parent181c99eea7872be9bd6e40f90914bfdf24891b63 (diff)
downloaddotfiles-1e82c625808539313df502eb69fd624311b1d68a.tar.bz2
vim: Tweak fugitive plugin settings
Diffstat (limited to '_vim/vimrc')
-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