Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Textmate 'Go to symbol' equivalent for Vim

On Railcasts I have noticed a very interesting feature 'Go to symbol' window. It work like Command-T but shows available classes and methods in current file. How to get it in vim?

like image 455
Sławosz Avatar asked Sep 20 '10 17:09

Sławosz


1 Answers

Try

:help tags

There are various programs and scripts around that will generate tag files. Also, the tag file format is really simple, so its easy to throw together a sed(1) or some such script that will generate a tag file from whatever language you are working in.

The key to easily getting a tag file (besides just downloading a generator) is to key on formatting style rather than actually parsing syntax.

like image 120
DigitalRoss Avatar answered Oct 04 '22 18:10

DigitalRoss