runtime(man): use `nnoremap` to map to Ex commands

Commit: 
https://github.com/vim/vim/commit/f21ca6d1f105489d07422299e8746fbe8ea7bb8a
Author: Ivan Shapovalov <inte...@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 <inte...@intelfx.name>
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/ftplugin/man.vim b/runtime/ftplugin/man.vim
index 91e8a8b78..87484bf69 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(<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

-- 
-- 
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/E1sQ6et-006g3R-Du%40256bit.org.

Raspunde prin e-mail lui