how 2 c the man page with in the vi editor

I would like to see the man page in vi editor itself with out going to the shell,,,,

i need the man page of the word where the cursor blinks in the vi editor if i press <F1> function key????

Thanks for the all who try for the solution
Who is Participating?
Karl Heinz KremerConnect With a Mentor Commented:
Actually, it is possible:

This page describes a man page viewer for vim: You position the cursor over a keyword and then hit the "K" key (F1 is already used by vim for it's own help). The page also links to a second page that shows how you can kick up the display of man pages in vim a bit.
Karl Heinz KremerCommented:
This is not how vi works. You may be able to do this with vim (
I use vi because it's the most efficient editor I know, but it sounds like you are used to something else (e.g. Visual Studio, which does bring up the information for the keyword under the cursor when you hit F1). Do you need to use vi? There are development environments very similar to Visual Studio available for Linux. One example is kdevelop. If I remember correctly, it does integrate the documentation into the IDE.
I don't know any way to do what you're asking for (context sensitive help with a keystroke) from inside vi, but you can do something very simple that can give you almost the same result:

In command mode of vi (pressing ESC key) go to vi command-line (press ':' key) and type the following:

:!man <word_which_man_page_are_you_looking_for>

(dont type the ':' again, is just what the screen will look like) and press the Enter key.

This will show you the man page whitout leaving vi and let you get back to your editing session by just quitting the man page viewer.

Hope it helps you.
The new generation of project management tools

With’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Karl Heinz KremerCommented:
This is a duplicate of a duplicate. I've posted the answer in your first question.

You can display man pages for keywords in vim by using this vim macro:
Karl Heinz KremerCommented:
Sorry, the last message should not have ended up in this question
k_kalyan, you can do this in vi

In command mode, type this
    :!man man
to see man page for man

Karl Heinz KremerCommented:
I provided the only valid solution with the link to
Recommend to accept my answer.
mine will work.
Karl Heinz KremerCommented:
hongjun, your answer will _NOT_ work: The question was to automatically display the man page for the command under the cursor. Your answer has two problems: It is not automatic, and it will only display the man page for the "man" command. This is _NOT_ a solution for this question.
Karl Heinz KremerCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Answered by khkremer
Please leave any comments here within the next four days.


EE Cleanup Volunteer
All Courses

From novice to tech pro — start learning today.