Kaynağa Gözat

make more use of fugitive as a git wrapper

Weiyi Lou 12 yıl önce
ebeveyn
işleme
47ff2cee62
1 değiştirilmiş dosya ile 4 ekleme ve 2 silme
  1. 4 2
      vim/vimrc

+ 4 - 2
vim/vimrc

@@ -233,9 +233,11 @@ vmap <silent> <leader>,    <ESC>:call NERDComment("x", "toggle")<CR>
 " Traverse undo tree with Gundo
 nmap <silent> <leader>u    :GundoToggle<CR>
 
-" Git blame and log with Fugitive
+" Git commands with Fugitive
+nmap <silent> <leader>gs   :Gstatus<CR>
+nmap <silent> <leader>gl   :Glog<CR><CR>
+nmap <silent> <leader>gap  :Git add -p<CR>
 nmap <silent> <leader>b    :Gblame<CR>
-nmap <silent> <leader>g    :Glog<CR><CR>
 
 " Ack with Ctrl-F
 nmap <C-F> :Grep<space>