Mercurial > vim
changeset 36031:36c6b09b70e0
runtime(mane): Improve <Plug>ManBS mapping
Commit: https://github.com/vim/vim/commit/5d1c55105739520f6de19b10328328e060c78984
Author: John M Devin <john.m.devin@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.devin@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 23 Aug 2024 18:45:09 +0200 |
parents | 78a7e0cd84e9 |
children | 2964adcfe42b |
files | runtime/ftplugin/man.vim |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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/.\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>