diff options
| author | xudyang1 <61672396+xudyang1@users.noreply.github.com> | 2024-10-15 11:34:50 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-15 08:34:50 -0700 |
| commit | ea5b748f243883b9890e465d4abef598fe2b07fc (patch) | |
| tree | da7679fce4a0aa26638d1dc4f5a6fadf1af0e0d9 /runtime/ftplugin | |
| parent | 84623dbe93777c0a8e7ddf57470ddeb2ea738069 (diff) | |
| download | rneovim-ea5b748f243883b9890e465d4abef598fe2b07fc.tar.gz rneovim-ea5b748f243883b9890e465d4abef598fe2b07fc.tar.bz2 rneovim-ea5b748f243883b9890e465d4abef598fe2b07fc.zip | |
feat(man.vim): "q" always closes window #30819
Diffstat (limited to 'runtime/ftplugin')
| -rw-r--r-- | runtime/ftplugin/man.vim | 6 |
1 files changed, 1 insertions, 5 deletions
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 <silent> <buffer> k gk nnoremap <silent> <buffer> gO :lua require'man'.show_toc()<CR> nnoremap <silent> <buffer> <2-LeftMouse> :Man<CR> - if get(g:, 'pager') - nnoremap <silent> <buffer> <nowait> q :lclose<CR><C-W>q - else - nnoremap <silent> <buffer> <nowait> q :lclose<CR><C-W>c - endif + nnoremap <silent> <buffer> <nowait> q :lclose<CR><C-W>q endif if get(g:, 'ft_man_folding_enable', 0) |