Make universal maps global

This commit is contained in:
Tim Pope
2019-09-03 23:56:16 -04:00
parent 68da9a2be3
commit 40bc5aff18
2 changed files with 35 additions and 4 deletions

View File

@@ -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)