nikhil
nikhil

Reputation: 9363

VI editor Navigation similar to Eclipse

I am used to eclipse/netbeans for coding. In eclipse If I want to go to the definition of a function I just hit F2 and it takes me to the definition and I can also return back to my current position. Does VI editor offer such flexibility? How do I do this in VI editor?

Upvotes: 0

Views: 140

Answers (1)

Kevin
Kevin

Reputation: 56129

Use ctags to create a tags file, then use C-] to go to the definition, then C-T to go back. If you don't have a tags file, vim will try to find the definition without it. You can also use gd to go to its earliest use in the file, which is often the definition.

Upvotes: 1

Related Questions