runtime(mane): Improve <Plug>ManBS mapping Commit: https://github.com/vim/vim/commit/5d1c55105739520f6de19b10328328e060c78984 Author: John M Devin <john.m.de...@gmail.com> Date: Fri Aug 23 18:34:41 2024 +0200
runtime(mane): Improve <Plug>ManBS mapping related: https://github.com/vim/vim/issues/15547 and https://github.com/vim/vim/issues/15538 closes: https://github.com/vim/vim/issues/15556 Signed-off-by: John M Devin <john.m.de...@gmail.com> Signed-off-by: Christian Brabandt <c...@256bit.org> diff --git a/runtime/ftplugin/man.vim b/runtime/ftplugin/man.vim index f1142ee0f..45c2bb239 100644 --- a/runtime/ftplugin/man.vim +++ b/runtime/ftplugin/man.vim @@ -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/. //ge<bar>setl noma<CR> + + nnoremap <buffer> <silent> <Plug>ManBS :setl ma<Bar>%s/. //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> -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/E1shXPS-003IGe-1C%40256bit.org.