motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit 3d5d23fe802c5914ead6f43b8f4e838998327ddb (tree)
parent 2dfaf17f9e9b2c8961eddc8ea51098fef500d189
Author: Tim Pope <code@tpope.net>
Date:   Fri, 19 Nov 2021 17:16:36 -0500

Remove q map stubs

Resolves: https://github.com/tpope/vim-fugitive/issues/1890

Diffstat:
Mautoload/fugitive.vim | 9---------
1 file changed, 0 insertions(+), 9 deletions(-)

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