]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(mane): Improve <Plug>ManBS mapping
authorJohn M Devin <john.m.devin@gmail.com>
Fri, 23 Aug 2024 16:34:41 +0000 (18:34 +0200)
committerChristian Brabandt <cb@256bit.org>
Fri, 23 Aug 2024 16:36:08 +0000 (18:36 +0200)
related: #15547 and #15538
closes: #15556

Signed-off-by: John M Devin <john.m.devin@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/ftplugin/man.vim

index f1142ee0f65df9b52cf382faba89820b2742b766..45c2bb239a9767c1db2e4d753d55264ce955cb1d 100644 (file)
@@ -5,7 +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 <Plug>ManBS mapping, #15547)
+"              2024 Aug 23 (improve the <Plug>ManBS mapping, #15547, #15556)
 
 " To make the ":Man" command available before editing a manual page, source
 " this script from your startup vimrc file.
@@ -37,7 +37,9 @@ if &filetype == "man"
       let b:undo_ftplugin = b:undo_ftplugin
            \ . '|silent! nunmap <buffer> <LocalLeader>h'
     endif
-    nnoremap <buffer> <Plug>ManBS :setl ma<bar>%s/.\b//ge<bar>setl noma<CR>
+
+    nnoremap <buffer> <silent> <Plug>ManBS :setl ma<Bar>%s/.\b//g
+       \ <Bar>setl noma<CR>`'
 
     nnoremap <buffer> <silent> <c-]> :call dist#man#PreGetPage(v:count)<CR>
     nnoremap <buffer> <silent> <c-t> :call dist#man#PopPage()<CR>