Add a git blame tool
This commit is contained in:
parent
fad0177331
commit
da29892f10
1 changed files with 7 additions and 1 deletions
|
@ -70,6 +70,12 @@ nnoremap <leader>t :call PickFile()<cr>
|
|||
nnoremap <leader>b :call PickBuffer()<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
|
||||
"
|
||||
" 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
|
||||
|
|
Loading…
Add table
Reference in a new issue