Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Manage #TODO (lots of files) with VIM

I use VIM/GVIM to develop my python projects and I randomly I leave #TODO comments in my code.

Is there any way to manage (search, list and link) all the #TODO occurrences inside VIM? I tried the tasklist plugin, it's almost what I need, but it only lists the current file #TODO occurrences. Generally my projects has some sub-folders and many .py files, so I'd like to find a way to search through all folders and files in the current working directory and list them.

like image 938
Magnun Leno Avatar asked Nov 05 '10 13:11

Magnun Leno


People also ask

What you mean by manage?

Definition of manage 1 : to achieve one's purpose He managed only by careful planning. 2a : to direct or carry on business or affairs also : to direct a baseball team. b : to admit of being carried on.

What is a synonyms of manage?

Some common synonyms of manage are conduct, control, and direct. While all these words mean "to use one's powers to lead, guide, or dominate," manage implies direct handling and manipulating or maneuvering toward a desired result. manages a meat market.

Would manage meaning?

You say 'I can manage' or 'I'll manage' as a way of refusing someone's offer of help and insisting on doing something by yourself.

What is the full form of manage?

Our Organization MANAGE was established in 1987, as the National Centre for Management of Agricultural Extension at Hyderabad, by the Ministry of Agriculture & Farmers Welfare, Government of India as an autonomous Institute, from which its acronym 'MANAGE' is derived.


1 Answers

If you just want a list of the occurences of "TODO" in .py files in the working directory, you can just use :vimgrep like so:

:vimgrep TODO **/*.py 

Then open the quickfix window with:

:cw 

(it might open it automatically anyway, not sure) and just scroll through the results, hitting Enter to go to each occurrence.

For more complicated management, I'd probably recommend setting up an issue tracker.

like image 72
Liquid_Fire Avatar answered Sep 30 '22 20:09

Liquid_Fire