On 03/08/2013 06:03 PM, Tim Chase wrote:
> On 2013-03-08 17:01, Tim Chase wrote:
>>> :set foldmarker= {,}
>>
>> :let &fdm=' {,}'
>
> And of course I mean
>
> :let &foldmarker=' {,}'
>
> here, not &fdm (which is 'foldmethod')
>
> -tim
>
>
>
to continue this topic, so I ran into following text
event-options {
policy COMMIT_TRAP {
events ui_commit;
attributes-match {
"^([vz][0-9]{6}|abc)$";
}
then {
raise-trap;
}
}
event-script {
file
}
}
after folding using the previous solution, I now can fold it as:
+-- 10 lines: event-options
+-- 3 lines: event-script
} <--one extra line here
so apparently that extra '}" in the line
"^([vz][0-9]{6}|abc)$";
is the culprit.
I hope I can simply do:
:set foldmarker=\ {,}$
so the intention is , using }, but only if it's the last char in the
line, as the marker....
but according to help foldmarker, it doesn't support regex.
so that doesn't work.
I guess there is no good way to achieve that goal?
thanks!
--
--
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.
Thursday, March 14, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment