From 9ee88bf07ab4eb811c55d9ec27fa98e48449699c Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Wed, 15 May 2013 16:23:17 -0400 Subject: Add vim-gitgutter --- .vimrc | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) (limited to '.vimrc') diff --git a/.vimrc b/.vimrc index 653459f0..efda8070 100644 --- a/.vimrc +++ b/.vimrc @@ -99,12 +99,11 @@ let g:syntastic_auto_loc_list=2 nnoremap ' ` nnoremap ` ' -" Clear search highlights -nmap n :silent :nohlsearch +nmap n :nohlsearch -nmap s :set list! +nmap s :set list! -nmap z :set spell! +nmap z :set spell! nmap p "+p nmap P "+P @@ -116,18 +115,22 @@ nmap D "+D nmap Y y$ " Insert hard tab -imap +imap nmap Q gq -nmap b :CtrlPBuffer -nmap e :CtrlP +nmap b :CtrlPBuffer +nmap e :CtrlP -nmap gs :Gstatus -nmap gc :Gcommit -nmap gp :Git push +nmap gs :Gstatus +nmap gc :Gcommit +nmap gp :Git push -nnoremap u :GundoToggle +nmap gg :GitGutterToggle +nmap gh GitGutterNextHunk +nmap gH GitGutterPrevHunk + +nmap u :GundoToggle " Toggle relative/absolute numbers function! NumberToggle() @@ -138,7 +141,7 @@ function! NumberToggle() endif endfunc -nnoremap :call NumberToggle() +nmap :call NumberToggle() " Custom commands command! W :w -- cgit 1.4.1