From da29892f103216d3e88695968ecabe955389c01f Mon Sep 17 00:00:00 2001 From: Max Bucknell Date: Tue, 2 Feb 2016 17:52:03 +0000 Subject: [PATCH] Add a git blame tool --- vim/vimrc.symlink | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/vim/vimrc.symlink b/vim/vimrc.symlink index 4c35afb..f90a481 100644 --- a/vim/vimrc.symlink +++ b/vim/vimrc.symlink @@ -70,6 +70,12 @@ nnoremap t :call PickFile() nnoremap b :call PickBuffer() nnoremap n :call PickFileVerticalSplit() +" Git blame +" +" Replace the buffer contents with git blame. +" Hit u to undo +nnoremap a :1,$!git blame % + " Tab config options " " In general, I prefer spaces to tabs, and 2-space indentation. These @@ -319,7 +325,7 @@ augroup vimrcEx \ endif " 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 " Hard wrap prose