If man page not found, then use argument as key, i. e.: :Man sem_ sem_close (3) - close a named semaphore sem_close (3p) - close a named semaphore (REALTIME) sem_destroy (3) - destroy an unnamed semaphore sem_destroy (3p) - destroy an unnamed semaphore (REALTIME) sem_getvalue (3) - get the value of a semaphore sem_getvalue (3p) - get the value of a semaphore (REALTIME) sem_init (3) - initialise an unnamed semaphore sem_init (3p) - initialize an unnamed semaphore (REALTIME) sem_open (3) - initialise and open a named semaphore sem_open (3p) - initialize and open a named semaphore (REALTIME) sem_overview (7) - Overview of POSIX semaphores sem_post (3p) - unlock a semaphore (REALTIME) sem_post (3) - unlock a semaphore sem_timedwait (3p) - lock a semaphore (ADVANCED REALTIME) sem_trywait [sem_wait] (3p) - lock a semaphore (REALTIME) sem_unlink (3p) - remove a named semaphore (REALTIME) sem_unlink (3) - remove a named semaphore sem_wait (3) - lock a semaphore sem_wait (3p) - lock a semaphore (REALTIME) man.vim.diff: --- man.vim.orig 2007-08-08 15:01:36.000000000 +0400 +++ man.vim 2007-08-09 08:29:48.000000000 +0400 @@ -106,9 +106,11 @@ if sect != "" && s:FindPage(sect, page) == 0 let sect = "" endif + let s:man_key_arg = "" if s:FindPage(sect, page) == 0 - echo "\nCannot find a '".page."'." - return +" echo "\nCannot find a '".page."'." +" return + let s:man_key_arg = "-k" endif exec "let s:man_tag_buf_".s:man_tag_depth." = ".bufnr("%") exec "let s:man_tag_lin_".s:man_tag_depth." = ".line(".") @@ -143,7 +145,7 @@ setl ma silent exec "norm 1GdG" let $MANWIDTH = winwidth(0) - silent exec "r!/usr/bin/man ".s:GetCmdArg(sect, page)." | col -b" + silent exec "r!/usr/bin/man ".s:man_key_arg.' '.s:GetCmdArg(sect,page)." | col -b" " Remove blank lines from top and bottom. while getline(1) =~ '^\s*$' silent norm ggdd Reproducible: Always Steps to Reproduce:
Did you submit this upstream?
Yes, but namsh at kldp.org is unaccessible.
You should definitely re-submit this to upstream. It's a nice idea for a patch, but this isn't the place to submit a new feature like this.