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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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.
Karl Heinz KremerCommented:
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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
IT Pros Agree: AI and Machine Learning Key

We’d all like to think our company’s data is well protected, but when you ask IT professionals they admit the data probably is not as safe as it could be.

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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Editors IDEs

From novice to tech pro — start learning today.