Find the answer to your Linux question:
Results 1 to 2 of 2
Hi all! I'm using ubuntu 9.04; Is there a complete library for C++ programming in ubuntu like "MSDN"?! When using "Vim", I want to access a function's complete definition such ...
  1. #1
    Just Joined!
    Join Date
    Sep 2009
    Posts
    27

    How to access a function's definition in "vim"?

    Hi all!

    I'm using ubuntu 9.04;

    Is there a complete library for C++ programming in ubuntu like "MSDN"?!

    When using "Vim", I want to access a function's complete definition such as it's header file, library description and parameters, etc.

    Is it necessary to install something from repository to obtain such a documentation?

    And what would be the command to access a function's description in "vim"?

    TIA

  2. #2
    Trusted Penguin Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,230
    This depends. Vim doesn't automatically know about the definitions of your functions.

    What you are able to do is create a "tags" file by using the "ctags" program. The tags file tells you the definition of every function. Therefore, you can create a tags file for your entire repository, and then use the Ctrl-] command to jump to the definition of a file.

    You can find more information by running the command ":help tags-and-searches" from Vim.
    DISTRO=Arch
    Registered Linux User #388732

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...