Skip to content

Commit 5d1c551

Browse files
jmdevinchrisbra
authored andcommitted
runtime(mane): Improve <Plug>ManBS mapping
related: #15547 and #15538 closes: #15556 Signed-off-by: John M Devin <[email protected]> Signed-off-by: Christian Brabandt <[email protected]>
1 parent 38f99a1 commit 5d1c551

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

runtime/ftplugin/man.vim

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
" Autoload Split: Bram Moolenaar
66
" Last Change: 2024 Jun 06 (disabled the q mapping, #8210)
77
" 2024 Jul 06 (use nnoremap, #15130)
8-
" 2024 Aug 22 (fix the <Plug>ManBS mapping, #15547)
8+
" 2024 Aug 23 (improve the <Plug>ManBS mapping, #15547, #15556)
99

1010
" To make the ":Man" command available before editing a manual page, source
1111
" this script from your startup vimrc file.
@@ -37,7 +37,9 @@ if &filetype == "man"
3737
let b:undo_ftplugin = b:undo_ftplugin
3838
\ . '|silent! nunmap <buffer> <LocalLeader>h'
3939
endif
40-
nnoremap <buffer> <Plug>ManBS :setl ma<bar>%s/.\b//ge<bar>setl noma<CR>
40+
41+
nnoremap <buffer> <silent> <Plug>ManBS :setl ma<Bar>%s/.\b//g
42+
\ <Bar>setl noma<CR>`'
4143
4244
nnoremap <buffer> <silent> <c-]> :call dist#man#PreGetPage(v:count)<CR>
4345
nnoremap <buffer> <silent> <c-t> :call dist#man#PopPage()<CR>

0 commit comments

Comments
 (0)