On 11/08/10 19:36, Christian Brabandt wrote:
Hi Jeri!
On Mi, 11 Aug 2010, Jeri Raye wrote:
# Start of text #
if
if
end if
end if
if
end if
# End of Text #
folds into
# Start of text #
+-- 3 lines: if
+-- 6 lines: if
end if
or else (untested)
syn region vhdlFold
\ start='\z(\if\\)'
\ end='\end\s\+\z1'
\ contains=vhdlFold
\ fold transparent
to make it recursive?
Best regards,
Tony.
--
Unfortantly the adding of \ contains=vhdlFold doesn't
Hi Christian,
folds into:
# Start of text #
+-- 4 lines: if-
end if
# End of Text #
Notice the not included 'end if'
That is because of the keepend. There was a reason why I left it out, in
my previous message ;)
But when I remove the
Hi Christian
Hi Jeri!
On Di, 10 Aug 2010, Jeri Raye wrote:
Hi Christian
Thanks, but that doesn't do it for me.
Please don't top post. What exactly does not do it for you?
Sorry, you are right.
Ans also for does not do it. This is a useless remark from me.
Thanks for reminding me on the
Hi Christian
I am no expert in syntax highlighting. But this should be possible
using \z() (see :h :syn-ext-match)
Something like this should work then for you:
:syn region myFOLD2 start=\z(if\) end=end \z1 transparent fold
I'm going to try this.
Thanks for the suggestion.
This is the fix
Hi Jeri!
On Mi, 11 Aug 2010, Jeri Raye wrote:
# Start of text #
if
if
end if
end if
if
end if
# End of Text #
folds into
# Start of text #
+-- 3 lines: if
+-- 6 lines: if
end if
# End of Text #
Christian Brabandt wrote on 11-8-2010 19:36:
Hi Jeri!
# Start of text #
if
if
end if
end if
if
end if
# End of Text #
folds into
# Start of text #
+-- 3 lines: if
+-- 6 lines: if
end if
# End of Text #
Notice
Hi Christian
Thanks, but that doesn't do it for me.
I discovered that in a syn region the 'start value' is not allowed
also in the 'end value'. So in
--- syn region myFold2 start=foo end=end foo; transparent fold
the second foo is not allowed.
Is there a way to work around this?
I'm trying to
2010/8/9 Jeri Raye jeri.r...@gmail.com:
Hi,
I'm trying to make a fold region that looks for the following
- when a line contains the word foo that's the start of the fold
- when one or more lines later the word end is found that should
close the line
- or when the words end with one or more
Hi Jeri!
On Di, 10 Aug 2010, Jeri Raye wrote:
Hi Christian
Thanks, but that doesn't do it for me.
Please don't top post. What exactly does not do it for you?
I discovered that in a syn region the 'start value' is not allowed
also in the 'end value'. So in
--- syn region myFold2
Hi,
I'm trying to make a fold region that looks for the following
- when a line contains the word foo that's the start of the fold
- when one or more lines later the word end is found that should
close the line
- or when the words end with one or more space char foo is found
that should close the
Hi Jeri!
On Mo, 09 Aug 2010, Jeri Raye wrote:
Hi,
I'm trying to make a fold region that looks for the following
- when a line contains the word foo that's the start of the fold
- when one or more lines later the word end is found that should
close the line
- or when the words end with
Hi,
I keep a monthly ToDo list file in the format of:
date:
- item1
-- subitem11
-- subitem21
---subsubitem211
...
example:
08/09:
- Post to vim_use
-- Fold question
- Read 200 lines of debug logs of recent application crash:
[200 lines of logs]
- Do something else
09/09
...
I
I would like to apply the most simple directive to fold all the file
so that each item (-) would be closed.
set foldmethod=indent ?
--
.
--~--~-~--~~~---~--~~
You received this message from the vim_use maillist.
For more information, visit
On Thu, Oct 8, 2009 at 2:27 PM, Paul wrote:
I would like to apply the most simple directive to fold all the file
so that each item (-) would be closed.
set foldmethod=indent ?
Doesn't get the job done. The bullets are indented but I'm too lazy to
indent the text so the file looks like:
-
On Oct 8, 8:31 am, yosi izaq izaq...@gmail.com wrote:
On Thu, Oct 8, 2009 at 2:27 PM, Paul wrote:
I would like to apply the most simple directive to fold all the file
so that each item (-) would be closed.
set foldmethod=indent ?
Doesn't get the job done. The bullets are indented
On Thu, October 8, 2009 3:31 pm, yosi izaq wrote:
On Thu, Oct 8, 2009 at 2:27 PM, Paul wrote:
I would like to apply the most simple directive to fold all the file
so that each item (-) would be closed.
set foldmethod=indent ?
Doesn't get the job done. The bullets are indented but I'm
On Thu, Oct 8, 2009 at 4:30 PM, Brett Stahlman wrote:
On Oct 8, 8:31 am, yosi izaq izaq...@gmail.com wrote:
On Thu, Oct 8, 2009 at 2:27 PM, Paul wrote:
I would like to apply the most simple directive to fold all the file
so that each item (-) would be closed.
set foldmethod=indent ?
On Thursday 08 October 2009, WL wrote:
Hi,
I keep a monthly ToDo list file in the format of:
date:
- item1
-- subitem11
-- subitem21
---subsubitem211
...
example:
08/09:
- Post to vim_use
-- Fold question
- Read 200 lines of debug logs of recent application crash:
On Thu, Oct 8, 2009 at 5:44 PM, Brett Stahlman wrote:
None of the lines start with `contains'. The lines were broken
automatically. The simplest way to test would be to paste it into a
file (e.g., /tmp/todo_syntax.vim) and source the file from within the
file containing your TODO items. E.g.,
Hi yosi!
On Do, 08 Okt 2009, yosi izaq wrote:
For reference - Dummy ToDo list file:
1
- item1
line 1
line 1
line 1
line 1
line 1
line 1
line 1
line 1
line 1
line 1
line 1
-- item 11
dsflkdsflkdsf
dsflkdsflkdsf
dsflkdsflkdsf
dsflkdsflkdsf
dsflkdsflkdsf
On Oct 8, 11:25 am, yosi izaq izaq...@gmail.com wrote:
On Thu, Oct 8, 2009 at 5:44 PM, Brett Stahlman wrote:
None of the lines start with `contains'. The lines were broken
automatically. The simplest way to test would be to paste it into a
file (e.g., /tmp/todo_syntax.vim) and source the
22 matches
Mail list logo