Re: Bug report: Folding C++

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: Bug report: Folding C++

Neil Bird
Around about 23/08/05 22:03, Stefan Karlsson typed ...
> By the way, this is what I've put in my ~/.vim/after/syntax/c.vim file
> (which is :sourced by ~/.vim/after/syntax.cpp):
>
> syn region cFold start="{" end="}" transparent fold
> syn sync fromstart

   Try:  syn region cFold start="^\s*{" end="^\s*}" transparent fold

--
[neil@fnx ~]# rm -f .signature
[neil@fnx ~]# ls -l .signature
ls: .signature: No such file or directory
[neil@fnx ~]# exit
Reply | Threaded
Open this post in threaded view
|

Re: Bug report: Folding C++

Stefan Karlsson-3
I've tried that to no avail.

-- Stefan


Neil Bird wrote:

> Around about 23/08/05 22:03, Stefan Karlsson typed ...
>
>> By the way, this is what I've put in my ~/.vim/after/syntax/c.vim
>> file (which is :sourced by ~/.vim/after/syntax.cpp):
>>
>> syn region cFold start="{" end="}" transparent fold
>> syn sync fromstart
>
>
>   Try:  syn region cFold start="^\s*{" end="^\s*}" transparent fold
>