Here is another attempt:
set foldexpr=getline(v:lnum)=~'^\s*#'

I want to fold lines that stat with # or lines that start with spaces
and #.
The problem is it's not working on the second case.
Here is an example. it will only fold line 1-2 and not lines 4-5:

# this is a comment
# in ruby. # is the first char

  # this is also a comment.
  # there are spaces before the #

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