I'd like to implement a simple TODO in vim. I decided that the task should look like the following:
* task in progress
task description
and maybe other text
+ finished task
Lines starting with anything but a space are task titles. The first character (* and + in the example above) shows the task status (I'm actually going to use 5-10 different statuses although the example contains only two ones). Lines started with a space are body of the task (in the example above "task in progress" has the body of two lines whereas "finished task" hasn't).
So I can color the whole task (title and body) based on task status (for example, green for closed tasks and red for tasks in progress).
But now I wish to be able to fold task bodies making task list shorter. Here a problem appears. If I fold a few tasks with different statuses then the folded lines have the same colors (set with ":highlight Folded"). But I want the folded line to have the color it has when the folding is opened.
Is there a way to do this?
I tryed playing with colors bg/fg/NONE but without success.
--
Vladimir
--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment