Replace call to deprecated function
This commit is contained in:
parent
d88a2dbac0
commit
2bd1e6ec58
@ -3,7 +3,7 @@
|
|||||||
" parent directory. Here’s a mapping of .. to the above command, but
|
" parent directory. Here’s a mapping of .. to the above command, but
|
||||||
" only for buffers containing a git blob or tree
|
" only for buffers containing a git blob or tree
|
||||||
autocmd User fugitive
|
autocmd User fugitive
|
||||||
\ if fugitive#buffer().type() =~# '^\%(tree\|blob\)$' |
|
\ get(b:, 'fugitive_type', '') =~# '^\%(tree\|blob\)$' |
|
||||||
\ nnoremap <buffer> .. :edit %:h<CR> |
|
\ nnoremap <buffer> .. :edit %:h<CR> |
|
||||||
\ endif
|
\ endif
|
||||||
|
|
||||||
@ -12,9 +12,3 @@ autocmd User fugitive
|
|||||||
" fugitive buffers. This prevents this from becomming an issue:
|
" fugitive buffers. This prevents this from becomming an issue:
|
||||||
|
|
||||||
autocmd BufReadPost fugitive://* set bufhidden=delete
|
autocmd BufReadPost fugitive://* set bufhidden=delete
|
||||||
|
|
||||||
" fugitive.git
|
|
||||||
" ========================================
|
|
||||||
" For fugitive.git, dp means :diffput. Define dg to mean :diffget
|
|
||||||
nnoremap <silent> ,dg :diffget<CR>
|
|
||||||
nnoremap <silent> ,dp :diffput<CR>
|
|
Loading…
x
Reference in New Issue
Block a user