The function described in this question has many different names depending on the IDE / Editor:
- In Resharper, it's called the "Goto File member"
- In Sublime Text 2 it's called the "Goto Symbol"
- In PyCharm, it's called the "Goto Symbol"
The function is essentially the same, although in all the above implementations (and I assume that it is very similar to TextMate). The function displays an interactive list of methods / functions (and potentially also includes member variables / properties).
The list allows interactive filtering by entering the name of the methods / functions / etc. The list also usually allows you to use the arrow keys to select a method / function / etc. Pressing the enter key with the selected method / function / etc moves to the line in the current file where the selected method / function / etc is defined.
Of all the existing answers in this question, the only one I see that seems to provide a fairly similar implementation of this function is to use the command:
:FufBufferTag
vim plugin FuzzyFinder .
The answer that involves using the taglist plugin is not a good solution, because the functionality offered by the taglist plugin is very different from this function. The taglist plugin offers similar functionality - the ability to view the outline of methods in the current file, but it does not offer an interactive way to filter this list in real time. The taglist plugin allows you to search for a tag buffer, but it is not as convenient as the "Goto symbol" function offered in other editors.
I would like to offer an alternative suggestion here, which is to use the command:
:CtrlPBufTag
in the excellent Ctrlp vim plugin. In my opinion, this is by far the best implementation of the "Goto Symbol" feature currently available in vim.
source share