sponsor Vim development Vim logo Vim Book Ad

basic Tip #36: Using Gnu-info help in vim

 tip karma   Rating 2/4, Viewed by 906 

created:   March 7, 2001 6:41      complexity:   basic
author:   [email protected]      as of Vim:   5.7

K in normal bring you the man page about the keyword under current cursor.
:nnoremap <F1> :exe ":!info ".expand("<cword>")
Now press F1 while the cursor is hold by a keyword such as printf will bring you to Gnu-info help page
:h <F1>
:h nnoremap

 rate this tip  Life Changing Helpful Unfulfilling 

<<For programmer: translate // style comment to /*  */and vice vesa | The basic operation about vim-boolean optionals >>

Additional Notes

Anonymous, January 14, 2004 1:36
Far better to use vimscript#21 - Info browsing within vim.

Then e.g. :nnoremap <F1> :exe ":Info ".expand("<cword>")<CR>

Also, set your shell to alias info to use vim: (bash)

function viminfo () { vim -c "Info $1" -c "bdelete 1"; }
alias info=viminfo
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 [email protected] after searching the archive. Help Bram help Uganda.
Sponsored by Web Concept Group Inc. SourceForge Logo