nvim: fugitive: Improve git blame
Improve git blame by - w: Ignoring white space - C: Detect lines moved or copied in the same commit - C: The commit that created the file - C: Any commit at all
This commit is contained in:
parent
cdde7294ff
commit
b1a6212749
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
nnoremap <Leader>ga :Git add %<CR>
|
nnoremap <Leader>ga :Git add %<CR>
|
||||||
nnoremap <Leader>gA :Git reset HEAD %<CR>
|
nnoremap <Leader>gA :Git reset HEAD %<CR>
|
||||||
xnoremap <Leader>gb :Git blame<CR>
|
xnoremap <Leader>gb :Git blame -w -C -C -C -M<CR>
|
||||||
nnoremap <Leader>gb :keepalt Git branch -a<CR>
|
nnoremap <Leader>gb :keepalt Git branch -a<CR>
|
||||||
nnoremap <Leader>gB :keepalt Git branch<SPACE>
|
nnoremap <Leader>gB :keepalt Git branch<SPACE>
|
||||||
nnoremap <Leader>gc :Git checkout -b<SPACE>
|
nnoremap <Leader>gc :Git checkout -b<SPACE>
|
||||||
|
@ -20,7 +20,7 @@ nnoremap <Leader>gl :keepalt Git log --stat %<CR>
|
||||||
nnoremap <Leader>gL :keepalt Git log --stat -n 100<CR>
|
nnoremap <Leader>gL :keepalt Git log --stat -n 100<CR>
|
||||||
xnoremap <Leader>gl :<C-U>call git#git_log_range()<CR>
|
xnoremap <Leader>gl :<C-U>call git#git_log_range()<CR>
|
||||||
xnoremap <Leader>gL :call git#git_log_named_block()<CR>
|
xnoremap <Leader>gL :call git#git_log_named_block()<CR>
|
||||||
nnoremap <Leader>gm :0,3Git blame<CR><C-w>j<CR>
|
nnoremap <Leader>gm :0,3Git blame -w -C -C -C -M<CR><C-w>j<CR>
|
||||||
nnoremap <Leader>gM :call git#git_merge_origin()<CR>
|
nnoremap <Leader>gM :call git#git_merge_origin()<CR>
|
||||||
nnoremap <Leader>gn :Git branch -m<SPACE>
|
nnoremap <Leader>gn :Git branch -m<SPACE>
|
||||||
nnoremap <Leader>go :call git#git_log_compare()<CR>
|
nnoremap <Leader>go :call git#git_log_compare()<CR>
|
||||||
|
|
Loading…
Reference in a new issue