On Thursday, June 9, 2016 at 2:02:37 PM UTC+2, Efraim Yawitz wrote:
> On Thu, Jun 9, 2016 at 2:39 PM, Ni Va <niva...@gmail.com> wrote:
> On Thursday, June 9, 2016 at 1:31:14 PM UTC+2, Efraim Yawitz wrote:
>
> > On Thu, Jun 9, 2016 at 1:46 PM, Christian Brabandt <cbl...@256bit.org> wrote:
>
> > Am 2016-06-09 10:44, schrieb Ni Va:
>
> >
>
> >
>
> > Hi,
>
> >
>
> >
>
> >
>
> > I open a csharp source code file into Vim then do this :
>
> >
>
> >
>
> >
>
> > echo "ft=".&ft . ' syn='.&syn . ' fdm='.&fdm | syn sync fromstart
>
> >
>
> >
>
> >
>
> >
>
> >
>
> > it outputs that : ft=cs syn=cs fdm=syntax
>
> >
>
> >
>
> >
>
> > and syn sync fromstart does not make folding wokring on, I don't understand why
>
> >
>
> >
>
> >
>
> >
>
> > It probably depends on the syntax file, what sections are actually folded.
>
> >
>
> >
>
> >
>
> > Look into syntax file to find out.
>
> >
>
> >
>
> >
>
> >
>
> >
>
> > Best,
>
> >
>
> > Christian
>
> >
>
> >
>
> > C# has an idea of 'regions' which fold according to preprocessor directives, and I think that is all that is implemented in the syntax file.
>
> >
>
> >
>
> > It is easy enough to copy the line:
>
> >
>
> > syn region cBlock start="{" end="}" transparent fold
>
> >
>
> >
>
> > from the C syntax file and execute it to get some more extensive folding.
>
> >
>
> >
>
> > Ephraim
>
>
>
> No section of the csharp code is folded. I join you the syntax file of vim7.4.1901 recompiled ten days ago
>
>
>
>
>
>
>
>
> The following lines in the cs.vim say "Fold regions defined by #region
Thursday, June 9, 2016
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment