I spend 20% of my life writing code in vim, almost exclusively javascript and python. The other 80% of the time I am mostly scrolling up and down my source file, trying to remember which function I'm currently editing and what class the function belongs to.
This may be technically impossible for reasons I don't understand, but are there any vim plugins which allow the vim status line to show the function the cursor is currently in for Python and/or Javascript?
It would look like this:
It's possible this already exists in, say, SublimeText. If so, I might finally stop crying and make the switch.
Some Vim plugins which don't offer this functionality:
Update
Since writing this question I've found ctags which does the same thing for C knows this kind of information. But how do I get it to display in the Vim status line?
ctags
. Use universalctags
instead. It's an actively maintained fork (and successor) of Exuberntctags
. – Raimundctags
plus the tagbar plugin. – Raimundtagbar
extension that (if both are properly configured) does exactly what you want (i.e. shows current function in the status line); althoughtagbar
by itself may be enough. – Airel