Friday, February 22, 2013

fold on lines beginning with either = or #

Using Fountain (new markdown for screenwriters).

I have Vim successfully folding on lines beginning with =

using this

setlocal foldexpr=getline(v:lnum)!~\"^=\"

but I would like Vim to fold on BOTH = and # (hierarchy not necessary)

How do I get the OR into the foldexpr?

Thank you

Rick

--
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment