From ea5b748f243883b9890e465d4abef598fe2b07fc Mon Sep 17 00:00:00 2001 From: xudyang1 <61672396+xudyang1@users.noreply.github.com> Date: Tue, 15 Oct 2024 11:34:50 -0400 Subject: feat(man.vim): "q" always closes window #30819 --- runtime/ftplugin/man.vim | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'runtime/ftplugin') diff --git a/runtime/ftplugin/man.vim b/runtime/ftplugin/man.vim index 37667477f3..5ea36c32ce 100644 --- a/runtime/ftplugin/man.vim +++ b/runtime/ftplugin/man.vim @@ -26,11 +26,7 @@ if !exists('g:no_plugin_maps') && !exists('g:no_man_maps') nnoremap k gk nnoremap gO :lua require'man'.show_toc() nnoremap <2-LeftMouse> :Man - if get(g:, 'pager') - nnoremap q :lcloseq - else - nnoremap q :lclosec - endif + nnoremap q :lcloseq endif if get(g:, 'ft_man_folding_enable', 0) -- cgit