From: Eric Weir, Thu, June 16, 2011 1:53 pm
>
> I have a file -- my journal -- in which I've been trying to figure
> out how manual folding works, and how to get it to work for me in a
> way that's reasonably close to what I want to accomplish.
>
> What it would like to do would be to collapse each daily entry to a
> single line showing only the date and the day, which is the first
> line of the entry, and then to be able to reopen the file with the
> folds displayed as saved.

It might be this simple:

  set viewoptions+=cursor,folds

This will recall cursor location to the last place of edit and
remember the fold state.

I also like to use markers in files where I'm forcing folds at
specific locations:

  ----|MyFile.txt|------------
  

  " 2011-06-15 {{{1
  
  
  " 2011-06-16 {{{1
  
  " 1}}}
  " vim:foldmethod=marker
  ----------------------------

In combination with a key combination that toggles folds or proceeds
down to the nearest fold if not already in one, it makes file
navigation quick.

-- 
Steve Hall  [ digitect dancingpaper com ]


-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to