aboutsummaryrefslogtreecommitdiffstats
path: root/_vim/vimrc
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-12-22 14:27:10 +0800
committerAaron LI <aly@aaronly.me>2018-12-22 14:27:10 +0800
commit8cfdd32cdae8aabf494162ea96a306d86412a5b2 (patch)
tree588a2d2732244bb896dc988ae0284553170754a1 /_vim/vimrc
parenteb14dcb8ccebf5833892154501f60f7492eb169b (diff)
downloaddotfiles-8cfdd32cdae8aabf494162ea96a306d86412a5b2.tar.bz2
vim: Add simple mappings for vim-fugitive
Diffstat (limited to '_vim/vimrc')
-rw-r--r--_vim/vimrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/_vim/vimrc b/_vim/vimrc
index bc4340b..d0e2b23 100644
--- a/_vim/vimrc
+++ b/_vim/vimrc
@@ -294,6 +294,10 @@ inoremap <F1> <Esc>
vnoremap <leader>y "+y
noremap <leader>p "+p
+" Mappings for vim-fugitive
+nnoremap <leader>gs :Gstatus<cr>
+nnoremap <leader>gd :Gdiff<cr>
+
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Helper functions