vim: is there a plugin to show all of your TODO tags in source?
Question
Like most of you, I work in several source files of code every day. A lot of the time, my insane work flow has me doing stuff like:
# TODO
# clean up this code
# do something else with this code
Is there currently a vim plugin available that will search for TODO or a similar mnemonic and print a list of my current tasks that are on-going and in what source file it needs to be done? It would be a huge time saver instead of using grep constantly. Also with vim ctags, you can jump right in the code where you left the TODO off at.
Solution
I've not tried it (yet), but this plugin looks promising.
Edit: I've just tried this plugin out. I will be keeping it around. It's very handy and interactively moves you around the buffer while you navigate the task list.
Also, there is a mirror on github if you use pathogen or another means of git submodules for your vim directory.
OTHER TIPS
When you say grep
, are you talking about grep from the command line, or :grep
in vim? The latter allows you to view a quickfix list of matches and jump to them. If typing out :grep TODO -r .
becomes cumbersome you could easily map that operation to a hotkey.
You can also use a tool like http://srcoftruth.com to track your TODOs using github issues. If you're already checking your code in it's pretty convenient.