From c6f07643e4c6b098c1cf966f1040f58f15e1a9f4 Mon Sep 17 00:00:00 2001 From: Mikko Lehto Date: Sun, 14 Oct 2018 11:23:15 +0300 Subject: [PATCH] vimrc: fugitive shortcuts --- vim/vimrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vim/vimrc b/vim/vimrc index 0b64f35..405f7bc 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -19,6 +19,13 @@ nnoremap :make! nnoremap :let _s=@/ :%s/\s\+$//e :let @/=_s :nohl :unlet _s set makeprg=gmake +let mapleader = ',' +nmap gs :Gstatus +nmap gd :Gvdiff +nmap ge :Gedit +nmap gr :Gread +nmap gb :Gblame + map :call functions#WinMove('h') map :call functions#WinMove('j') map :call functions#WinMove('k')