Loading ...
Sorry, an error occurred while loading the content.

55160Re: Folding with shell syntax

Expand Messages
  • vim@henkis.net
    Nov 29, 2004
      On Mon, Nov 29, 2004 at 04:17:40PM +0200, Sonic_Wind wrote:
      > Hello Henrik,
      > Monday, November 29, 2004, 2:35:02 PM, you wrote:
      > vhn> Fellow vim users!
      > vhn> I am in great need of using function folding, and i have tried to enable it
      > vhn> with the syntax folding, but i can't get it to work.
      > vhn> Since there seem to be support for folding in the syntax file, cant i just
      > vhn> enable it by a simple command, like "syntax on" but "folding on"?
      > vhn> set foldmethod=syntax and enabling folding does not seem to work.
      > vhn> I'm using VIM 6.3...
      > vhn> Thanks for any pointers, google was unable to help me ;)
      > vhn> /Henrik
      > set foldmethod=syntax " means that syntax regions will be folded
      > " the discription of such rigions must contain
      > " fold key word
      > for C-like languages this might looks like:
      > sy region myFold start="{" end="}" fold transparent
      > , so what language do you use.

      It's shell scripts .sh files, syntax highlighting works fine. But do i have to
      define them with start and end if the syntaxfile supports folding, should i not be able to just start the folding?


      > --
      > Cheers,
      > Wind mailto:sonic_wind@...
    • Show all 9 messages in this topic