Tip 36 Printable Monobook Previous Next
created March 7, 2001 · complexity basic · author vimer · version 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
References
- :help <F1>
- ((help|:nnoremap}}
Comments
Far better to use 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