Find the answer to your Linux question:
Results 1 to 4 of 4
Hi folks, I was working mostly on C language with the help of VIM editor which is already available under any (Li/U)nix machines. Today i came across a blog which ...
  1. #1
    Just Joined!
    Join Date
    Feb 2009
    Location
    Chennai, India
    Posts
    28

    Smile [SOLVED] Working with ctags in vim editor

    Hi folks,

    I was working mostly on C language with the help of VIM editor which is already available under any (Li/U)nix machines.

    Today i came across a blog which teaches about using the ctags for simplifying the task of navigating between the source codes.

    Now, i have a need, most of the Programming Language IDE has a feature called "Jump to caller" where the IDE lists the set of places where the current selected method is called from.

    Is there a way we can have such functionality under VIM? If so how can we do that one?

  2. #2
    Just Joined!
    Join Date
    Nov 2007
    Posts
    5

    Working with ctags in vim editor

    The ctags do not track the call-stack (who calls who) but more like the IDE's "Go To Reference" function.

    If you will load a tags file (during work or "set tags=<tags file>" in the .vimrc file), stand on a function or variable and press ctrl+] , You will find the function/variable deceleration.

  3. #3
    Just Joined!
    Join Date
    Feb 2009
    Location
    Chennai, India
    Posts
    28
    liofko thanks for your reply. Is there any other hack which let the vim to keep track of the call-stack. It would be helpfull for me.

    Because i don't have GUI at my end, i am working in terminal only which let me to use VIM and although i am comfortable with the functionalities of VIM this feature affects me a lot. Everytime i see a function i have to come back to terminal and use grep to search for that particular function call-stack which takes time as i am working on a source tree which has more than 12000 source code files.

    Thanks in advance.

  4. #4
    Just Joined!
    Join Date
    Feb 2009
    Location
    Chennai, India
    Posts
    28
    Hi folks,

    I found out the solution for this problem by using cscope.

    Thanks

Posting Permissions

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