Fix temp file gq shadowing blame gq
This commit is contained in:
parent
7d484eaf52
commit
308e4bf241
@ -2091,7 +2091,9 @@ function! s:TempReadPost(file) abort
|
|||||||
if empty(mapcheck('q', 'n'))
|
if empty(mapcheck('q', 'n'))
|
||||||
nnoremap <buffer> <silent> q :<C-U>bdelete<Bar>echohl WarningMsg<Bar>echo "Temp file q is deprecated in favor of the built-in <Lt>C-W>q"<Bar>echohl NONE<CR>
|
nnoremap <buffer> <silent> q :<C-U>bdelete<Bar>echohl WarningMsg<Bar>echo "Temp file q is deprecated in favor of the built-in <Lt>C-W>q"<Bar>echohl NONE<CR>
|
||||||
endif
|
endif
|
||||||
call s:Map('n', 'gq', ":<C-U>bdelete<CR>", '<silent>')
|
if !&modifiable
|
||||||
|
call s:Map('n', 'gq', ":<C-U>bdelete<CR>", '<silent> <unique>')
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
return ''
|
return ''
|
||||||
endfunction
|
endfunction
|
||||||
|
Loading…
Reference in New Issue
Block a user