Sublime code has a shortcut Super-R which opens a method browser listing all methods in current class (Ruby). Is there a plugin to get similar functionality in Vim?
“/def ” or “m]” work only if you’re familiar with the class and know what method you want to go to, whereas Super+R works for just exploring a class.
The TagList plugin is another (very popular) option. There are a bunch of others.
FYI,
/defandm]are not the equivalent of Sublime Text’s Ctrl+R. That would be:tag foowhich you can tab-complete if you don’t know all the names of your methods.While we are at it, the CtrlP plugin has a feature very similar to Sublime Text’s Ctrl+R:
:CtrlpBufTagthat I use hundreds of times a day.All of these methods depend on the presence of a
tagsfile generated by Exuberant Ctags or some compatible program. Actually, tags are quite an important part of the Vim experience.