# HG changeset patch # User Christian Brabandt # Date 1717695003 -7200 # Node ID 1f56105832f214ebcd75d05c3adc07603f3cb10d # Parent 3143383ce878fa1373d0190b940b1fce28ea9582 runtime(man): disable the q mapping Commit: https://github.com/vim/vim/commit/6dcd7f1a4d6d216798963edce9de69d03092433f Author: Christian Brabandt Date: Thu Jun 6 19:06:38 2024 +0200 runtime(man): disable the q mapping fixes: https://github.com/vim/vim/issues/8210 Signed-off-by: Christian Brabandt diff --git a/runtime/ftplugin/man.vim b/runtime/ftplugin/man.vim --- a/runtime/ftplugin/man.vim +++ b/runtime/ftplugin/man.vim @@ -3,7 +3,7 @@ " Maintainer: Jason Franklin " Maintainer: SungHyun Nam " Autoload Split: Bram Moolenaar -" Last Change: 2023 Mar 21 +" Last Change: 2024 Jun 06 (disabled the q mapping, #8210) " To make the ":Man" command available before editing a manual page, source " this script from your startup vimrc file. @@ -39,14 +39,16 @@ if &filetype == "man" nnoremap :call dist#man#PreGetPage(v:count) nnoremap :call dist#man#PopPage() - nnoremap q :q + " Disabled, since this hides the ability to record a macro or use the + " command line window + " nnoremap q :q " Add undo commands for the maps let b:undo_ftplugin = b:undo_ftplugin \ . '|silent! nunmap ManBS' \ . '|silent! nunmap ' \ . '|silent! nunmap ' - \ . '|silent! nunmap q' + "\ . '|silent! nunmap q' endif if exists('g:ft_man_folding_enable') && (g:ft_man_folding_enable == 1)