Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 188308 - app-editors/vim patch for man.vim
Summary: app-editors/vim patch for man.vim
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Vim Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-10 09:28 UTC by vyp08
Modified: 2009-04-13 16:17 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vyp08 2007-08-10 09:28:03 UTC
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:
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-08-10 10:46:10 UTC
Did you submit this upstream?
Comment 2 vyp08 2007-08-13 04:35:35 UTC
Yes, but namsh at  kldp.org is unaccessible.
Comment 3 Jim Ramsay (lack) (RETIRED) gentoo-dev 2009-04-13 16:17:55 UTC
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.