diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 3043208..790b277 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -193,8 +193,10 @@ function! fugitive#detect(path) abort let &mls = save_mls endtry endif - cnoremap fnameescape(recall()) - nnoremap y :call setreg(v:register, recall()) + if !exists('g:fugitive_no_maps') + cnoremap fnameescape(recall()) + nnoremap y :call setreg(v:register, recall()) + endif let buffer = fugitive#buffer() if expand('%:p') =~# '//' call buffer.setvar('&path', s:sub(buffer.getvar('&path'), '^\.%(,|$)', ''))