On Thu, Jan 21, 2010 at 2:01 AM, Dennis Benzinger
<[email protected]> wrote:
> Foss User wrote:
>>
>> I want to maintain a journal in a huge file. The format would be
>> somewhat like this.
>>
>> * Jan 21, 2010
>> * 1:45 AM
>> * Posted this mail
>> * Waiting for visitors to come
>> * 5:50 AM
>> * Found a new plugin to browser directories
>> * Jan 22, 2010
>> .. and so on ...
>>
>> So, I would want to fold lines, etc. easily depending on the
>> indentation hierarchy. Is there any plugin that can do it? Is there
>> any vim script to maintain journals, TODO lists, etc.?
>
> If you just need folding based on the indentation you can simply do:
>
> :set foldmethod=indent
>
Thanks. I tried this. Unfortunately, when I place the cursor on
"Posted this email" and press 'zc' it folds it like this:
* Jan 21, 2010
* 1:45 AM
* Posted this mail ...
* 1:48 AM
* Foo bar
* Foo bar 2
However, what I wanted was,
* Jan 21, 2010
* 1:45 AM ...
* 1:48 AM
* Foo bar
* Foo bar 2
--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php