]> oss.titaniummirror.com Git - smckown/dotfiles.git/commitdiff
Add shortcuts for fugitive plugin commands
authorR. Steve McKown <rsmckown@gmail.com>
Tue, 9 Jun 2015 22:43:34 +0000 (16:43 -0600)
committerR. Steve McKown <rsmckown@gmail.com>
Tue, 9 Jun 2015 22:43:34 +0000 (16:43 -0600)
For example: <leader>gs for :Git Status

vim/vimrc

index a670f8625513ff8625a5c62e2e51dfce9bf11e17..ad8cca5ee73771a0a9a22e51eb81bbf5eed42874 100644 (file)
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -210,6 +210,18 @@ if has("autocmd")
     \ endif
 endif
 
+" Fugitive shortcuts
+nnoremap <silent> <leader>gs :Gstatus<CR>
+nnoremap <silent> <leader>gd :Gdiff<CR>
+nnoremap <silent> <leader>gc :Gcommit<CR>
+nnoremap <silent> <leader>gb :Gblame<CR>
+nnoremap <silent> <leader>gl :Glog<CR>
+nnoremap <silent> <leader>gp :Git push<CR>
+nnoremap <silent> <leader>gr :Gread<CR>
+nnoremap <silent> <leader>gw :Gwrite<CR>
+"nnoremap <silent> <leader>ge :Gedit<CR>
+nnoremap <silent> <leader>gi :Git add -p %<CR>
+
 " EasyGrep
 " To ignore tags file, use system grep.
 let g:EasyGrepCommand=1