Mercurial > vim
changeset 35560:c018d4afc61f
runtime(man): use `nnoremap` to map to Ex commands
Commit: https://github.com/vim/vim/commit/f21ca6d1f105489d07422299e8746fbe8ea7bb8a
Author: Ivan Shapovalov <intelfx@intelfx.name>
Date: Sat Jul 6 16:16:40 2024 +0200
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 <intelfx@intelfx.name>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 06 Jul 2024 16:45:03 +0200 |
parents | dca02942020f |
children | 473f32861466 |
files | runtime/ftplugin/man.vim |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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(<q-mods>, <f-args>) - nmap <Leader>K :call dist#man#PreGetPage(0)<CR> - nmap <Plug>ManPreGetPage :call dist#man#PreGetPage(0)<CR> + nnoremap <Leader>K :call dist#man#PreGetPage(0)<CR> + nnoremap <Plug>ManPreGetPage :call dist#man#PreGetPage(0)<CR> endif let &cpo = s:cpo_save