diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 494f8fd..615b4ca 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -2889,9 +2889,6 @@ function! fugitive#BufReadStatus(...) abort call s:Map('x', 'p', ":execute StagePatch(line(\"'<\"),line(\"'>\"))", '') call s:Map('n', 'I', ":execute StagePatch(line('.'),line('.'))", '') call s:Map('x', 'I', ":execute StagePatch(line(\"'<\"),line(\"'>\"))", '') - if empty(mapcheck('q', 'n')) - nnoremap q :echoerr "fugitive: q is removed in favor of gq (or :q)" - endif call s:Map('n', 'gq', ":if bufnr('$') == 1quitelsebdeleteendif", '') call s:Map('n', 'R', ":echohl WarningMsgecho 'Reloading is automatic. Use :e to force'echohl NONE", '') call s:Map('n', 'g', ":echoerr 'Changed to X'", '') @@ -3211,9 +3208,6 @@ function! s:TempReadPost(file) abort endif setlocal foldmarker=<<<<<<<<,>>>>>>>> if !&modifiable - if empty(mapcheck('q', 'n')) - nnoremap q :echoerr "fugitive: q is removed in favor of gq (or :q)" - endif call s:Map('n', 'gq', ":bdelete", ' ') endif endif @@ -7112,9 +7106,6 @@ function! s:BlameMaps(is_ftplugin) abort let ft = a:is_ftplugin call s:Map('n', '', ':help :Git_blame', '', ft) call s:Map('n', 'g?', ':help :Git_blame', '', ft) - if empty(mapcheck('q', 'n')) - nnoremap q :echoerr "fugitive: q removed in favor of gq (or :q)" - endif call s:Map('n', 'gq', ':exe BlameQuit()', '', ft) call s:Map('n', '<2-LeftMouse>', ':exe BlameCommit("exe BlameLeave()edit")', '', ft) call s:Map('n', '', ':exe BlameCommit("exe BlameLeave()edit")', '', ft)