Vim Tips Wiki
No edit summary
 
(Change <tt> to <code>, perhaps also minor tweak.)
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{review}}
 
{{review}}
  +
{{TipImported
{{Tip
 
 
|id=606
 
|id=606
  +
|previous=605
|title=Seeing the man pages while being in VIM
 
  +
|next=607
|created=November 19, 2003 0:00
+
|created=2003
 
|complexity=basic
 
|complexity=basic
 
|author=Manas Behera
 
|author=Manas Behera
 
|version=5.7
 
|version=5.7
 
|rating=54/26
 
|rating=54/26
  +
|category1=
|text=
 
  +
|category2=
You can see the man pages of anything you want from VIM. No need to exit VIM. Just put the cursor under the word.and press shift+k (Capital K) and you will be in the man page section. when you are through just press 'q' and you will be out of VIM. Press enter to come back to VIM.
 
 
}}
 
}}
 
You can see the man pages of anything you want from Vim. No need to exit Vim. Just put the cursor on the word and press K and you will be in the man page section. when you are through just press 'q' and you will be out of Vim. Press enter to come back to Vim.
   
 
See also [[VimTip167|Using vim as a man-page viewer under Unix]] and{{script|id=489|text=ManPageView}}.
== Comments ==
 
Thank you! Now I can remove my function from .vimrc which do the same thing :)
 
   
 
==Comments==
ivon--AT--jinr.ru
 
  +
You can use <code>ftplugin/man.vim</code> (distributed with Vim) for the Vim built-in manpage viewer, with ability of hyperlinking via the tags mechanism.
, November 19, 2003 0:56
 
----
 
After moving my &lt;.vimrc&gt; to &lt;DOTVIMRC&gt; and my &lt;.vim/&gt; to &lt;DOTVIM/&gt;, so as to avoid
 
any of my customizations, and writing a new &lt;.vimrc&gt; with just
 
 
set nocp
 
filetype plugin indent on
 
 
the tip did not work using &lt;ctrl-k&gt; on "printf(...)" in a C file. Obviously it needs something!
 
 
May I suggest looking at [[VimTip167]] "Using vim as a man-page viewer under Unix" and
 
[/scripts/script.php?script_id=489 vimscript&#35;489] "Manpageview.vim".
 
 
drNchipO--AT--ScampbellPfamilyA.Mbiz - NOSPAM
 
, November 19, 2003 7:02
 
----
 
Whoops -- yes it does work -- use K, not &lt;ctrl-k&gt;.
 
 
drNchipO--AT--ScampbellPfamilyA.Mbiz
 
, November 19, 2003 7:05
 
----
 
If you use ftplugin/man.vim
 
you can use the VIM builtin manpage viewer, with ability of
 
hyperlinking via the tags mechanism.
 
 
just do
 
:Man &lt;your favourite man page&gt;
 
   
  +
<pre>
a lot better (but a little slower) than the Shift+K
 
 
:Man <your favourite man page>
  +
</pre>
   
 
A lot better (but a little slower) than the Shift+K,
   
'''Anonymous'''
 
, November 23, 2003 7:03
 
 
----
 
----
<!-- parsed by vimtips.py in 0.685816 seconds-->
 

Revision as of 05:38, 13 July 2012

Tip 606 Printable Monobook Previous Next

created 2003 · complexity basic · author Manas Behera · version 5.7


You can see the man pages of anything you want from Vim. No need to exit Vim. Just put the cursor on the word and press K and you will be in the man page section. when you are through just press 'q' and you will be out of Vim. Press enter to come back to Vim.

See also Using vim as a man-page viewer under Unix andManPageView.

Comments

You can use ftplugin/man.vim (distributed with Vim) for the Vim built-in manpage viewer, with ability of hyperlinking via the tags mechanism.

:Man <your favourite man page>

A lot better (but a little slower) than the Shift+K,