Am 2014-11-14 01:44, schrieb fpx...@gmail.com:
For note-taking I use vim.

I would like to keep a convenient overview of my notes with folding.

Therefor I’m using the fold method “indent”.

However, this method doesn’t cover all my needs.

I would like to be able to fold all indent levels, including the first
paragraph.

Unfortunately, it is not possible to fold the first paragraph, see
screenshot http://i.imgur.com/1N9bY3b.png .

I would love to this made possible.

I hope someone can help me with this.

Seems like you need to use expression based folding. The following should
mimic the indent based approach, except, that this will also fold away
top level (non-indented items).

:set foldlevel=0 foldcolumn=5 fdm=expr fde=(indent(v:lnum)/shiftwidth())+1

Best,
Christian

--
--
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

--- You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to