sponsor Vim development Vim logo Vim Book Ad

mantip : quick tip from synopsis section in man pages for words

 script karma  Rating 1/1, Downloaded by 456  Comments, bugs, improvements  Vim wiki

created by
Itay Donenhirsch
 
script type
utility
 
description
with default key binding enabled, move the cursor over a word, for example strcmp and press <leader>d
this will put the following line in the status line:

STRCMP(3) 1/2: int strcmp(const char *s1, const char *s2);
(STCMP(3) - man page, 1/2 - first line of two lines)

pressing <leader>d again will show the next decelration:

STRCMP(3) 2/2: int strncmp(const char *s1, const char *s2, size_t n);

<leader>D show the previous one, the list is cyclic

use <leader>1..9 to man specific sections

see code for more details
 
install details
just put under ~/.vim/plugin
to enable default key bindings put
let g:mantip_bindkeys=1
in your ~/.vimrc
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
mantip.vim 0.1 2010-08-16 6.0 Itay Donenhirsch Initial upload
ip used for rating: 13.59.82.167

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github