From: Ivan Shapovalov Date: Sat, 6 Jul 2024 14:16:40 +0000 (+0200) Subject: runtime(man): use `nnoremap` to map to Ex commands X-Git-Tag: v9.1.0535~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f21ca6d1f105489d07422299e8746fbe8ea7bb8a;p=thirdparty%2Fvim.git runtime(man): use `nnoremap` to map to Ex commands If the user plays rebinding games such as nnoremap : , nnoremap , : (cf. https://konfekt.github.io/blog/2016/10/03/get-the-leader-right), then the mappings defined by man.vim will become non-functional. closes: #15130 Signed-off-by: Ivan Shapovalov Signed-off-by: Christian Brabandt --- diff --git a/runtime/ftplugin/man.vim b/runtime/ftplugin/man.vim index 91e8a8b78c..87484bf691 100644 --- a/runtime/ftplugin/man.vim +++ b/runtime/ftplugin/man.vim @@ -61,8 +61,8 @@ endif if exists(":Man") != 2 com -nargs=+ -complete=shellcmd Man call dist#man#GetPage(, ) - nmap K :call dist#man#PreGetPage(0) - nmap ManPreGetPage :call dist#man#PreGetPage(0) + nnoremap K :call dist#man#PreGetPage(0) + nnoremap ManPreGetPage :call dist#man#PreGetPage(0) endif let &cpo = s:cpo_save