mirror of
https://github.com/tpope/vim-fugitive.git
synced 2026-01-09 13:02:26 +08:00
Make universal maps global
This commit is contained in:
@@ -5847,10 +5847,6 @@ function! fugitive#Init() abort
|
||||
let &mls = save_mls
|
||||
endtry
|
||||
endif
|
||||
if !exists('g:fugitive_no_maps')
|
||||
call s:Map('c', '<C-R><C-G>', '<SID>fnameescape(fugitive#Object(@%))', '<expr>')
|
||||
call s:Map('n', 'y<C-G>', ':<C-U>call setreg(v:register, fugitive#Object(@%))<CR>', '<silent>')
|
||||
endif
|
||||
let dir = s:Dir()
|
||||
if stridx(&tags, escape(dir, ', ')) == -1 && &tags !~# '\.git' && !exists('s:tags_warning')
|
||||
let actualdir = fugitive#Find('.git/', dir)
|
||||
|
||||
Reference in New Issue
Block a user