Add a git blame tool

This commit is contained in:
Max Bucknell 2016-02-02 17:52:03 +00:00
parent fad0177331
commit da29892f10

View file

@ -70,6 +70,12 @@ nnoremap <leader>t :call PickFile()<cr>
nnoremap <leader>b :call PickBuffer()<cr> nnoremap <leader>b :call PickBuffer()<cr>
nnoremap <leader>n :call PickFileVerticalSplit()<cr> nnoremap <leader>n :call PickFileVerticalSplit()<cr>
" Git blame
"
" Replace the buffer contents with git blame.
" Hit u to undo
nnoremap <leader>a :1,$!git blame %<cr>
" Tab config options " Tab config options
" "
" In general, I prefer spaces to tabs, and 2-space indentation. These " In general, I prefer spaces to tabs, and 2-space indentation. These
@ -319,7 +325,7 @@ augroup vimrcEx
\ endif \ endif
" Language whitespace settings " Language whitespace settings
autocmd FileType javascript,json,c,xml,java,php,python setl sw=4 sts=4 autocmd FileType snippets,javascript,json,c,xml,java,php,python setl et sw=4 sts=4
autocmd FileType make setl noet sw=8 sts=8 ts=8 autocmd FileType make setl noet sw=8 sts=8 ts=8
" Hard wrap prose " Hard wrap prose