From a961e6642de516003cba782c1db75ec9bfca31bb Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Wed, 15 May 2013 16:23:17 -0400 Subject: Add vim-gitgutter --- .gitmodules | 3 +++ .vimrc | 27 +++++++++++++++------------ bundle/vim-gitgutter | 1 + 3 files changed, 19 insertions(+), 12 deletions(-) create mode 160000 bundle/vim-gitgutter diff --git a/.gitmodules b/.gitmodules index 87873438..e7e9439c 100644 --- a/.gitmodules +++ b/.gitmodules @@ -55,3 +55,6 @@ [submodule "bundle/vim-commentary"] path = bundle/vim-commentary url = https://github.com/tpope/vim-commentary.git +[submodule "bundle/vim-gitgutter"] + path = bundle/vim-gitgutter + url = https://github.com/airblade/vim-gitgutter.git 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 diff --git a/bundle/vim-gitgutter b/bundle/vim-gitgutter new file mode 160000 index 00000000..ff031d02 --- /dev/null +++ b/bundle/vim-gitgutter @@ -0,0 +1 @@ +Subproject commit ff031d022f2123353bc93a3aa97290287c10a287 -- cgit 1.4.1