diff --git a/runtime/ftplugin/man.vim b/runtime/ftplugin/man.vim index f0723ef7bf..f1142ee0f6 100644 --- a/runtime/ftplugin/man.vim +++ b/runtime/ftplugin/man.vim @@ -5,6 +5,7 @@ " Autoload Split: Bram Moolenaar " Last Change: 2024 Jun 06 (disabled the q mapping, #8210) " 2024 Jul 06 (use nnoremap, #15130) +" 2024 Aug 22 (fix the ManBS mapping, #15547) " To make the ":Man" command available before editing a manual page, source " this script from your startup vimrc file. @@ -36,20 +37,16 @@ if &filetype == "man" let b:undo_ftplugin = b:undo_ftplugin \ . '|silent! nunmap h' endif - nnoremap ManBS :%s/.\b//g:setl nomod'' + nnoremap ManBS :setl ma%s/.\b//gesetl noma nnoremap :call dist#man#PreGetPage(v:count) nnoremap :call dist#man#PopPage() - " 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' endif if exists('g:ft_man_folding_enable') && (g:ft_man_folding_enable == 1)