From 84381b084a6ec3a25fa057df4f5926644864fcaa Mon Sep 17 00:00:00 2001 From: Jakub Fojt Date: Tue, 12 Nov 2019 13:59:37 +0100 Subject: [PATCH] vimrc: Fugitive git bindings. Visual select + easymotion binding --- .vimrc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.vimrc b/.vimrc index b4861c3..451f5ae 100755 --- a/.vimrc +++ b/.vimrc @@ -128,8 +128,9 @@ command! Csc cscope find c " Easymotion leader map (easymotion-prefix) -" Forwards and backwards jump +" Forwards and backwards jump and visual select map (easymotion-s) +map (easymotion-s) " Forwards and backwards word jump map w (easymotion-bd-w) " Easymotion overwin line @@ -162,12 +163,19 @@ nmap v :e $MYVIMRC " Match git conflict markers nmap /g /[<=>]\{7,}.*$ +" Git-Gutter status, commit, grep, blame +nmap gs :Gstatus +nmap gc :Gcommit +nmap gS :Gstatus :Gcommit +nmap gg :Ggrep +nmap gb :Gblame " Toggle wrapping of long lines nmap l :set wrap! " Strip trailing whitespace nmap :TrailWhitespace + " Scroll window while keeping cursor on same line with shift nmap nmap @@ -178,4 +186,3 @@ vmap map n :noh vmap T :'<,'> Tabularize / nnoremap c :execute "set colorcolumn=" . (&colorcolumn == "" ? "120" : "") -noremap :