From 0f75b2ad2e23107f8112b6dcd4785eeef6cc34aa Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 20 Jun 2024 05:56:58 +0200 Subject: Merging upstream version 2:9.1.0496. Signed-off-by: Daniel Baumann --- runtime/ftplugin/man.vim | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'runtime/ftplugin/man.vim') diff --git a/runtime/ftplugin/man.vim b/runtime/ftplugin/man.vim index a2c33bc..91e8a8b 100644 --- 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) -- cgit v1.2.3