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

bouncing on multicharacter delimiters

Expand Messages
  • Edward Peschko
    hey all, I was wondering if it was possible to jump on multi-character delimiters, ie: ie - I ve just started editing
    Message 1 of 3 , Aug 1, 2004
      hey all,

      I was wondering if it was possible to jump on multi-character delimiters, ie:

      <div>
      <div>
      <div>
      </div>
      </div>
      </div>

      ie - I've just started editing html files, and am already finding it very irksome.
      Hopefully, vim has a technical solution up its sleeve...

      Ed
    • Benji Fisher
      ... You want to use the matchit plugin, part of the standard distribution in the macros/ directory. See ... HTH --Benji Fisher
      Message 2 of 3 , Aug 1, 2004
        On Sun, Aug 01, 2004 at 05:33:06PM -0700, Edward Peschko wrote:
        > hey all,
        >
        > I was wondering if it was possible to jump on multi-character delimiters, ie:
        >
        > <div>
        > <div>
        > <div>
        > </div>
        > </div>
        > </div>
        >
        > ie - I've just started editing html files, and am already finding it very irksome.
        > Hopefully, vim has a technical solution up its sleeve...
        >
        > Ed

        You want to use the matchit plugin, part of the standard
        distribution in the macros/ directory. See

        :help matchit-install

        HTH --Benji Fisher
      • Andrew Pimlott
        [I tried to send this before, but because it was cross-posted to haskell-cafe, I used the wrong from address. Nobody replied on haskell-cafe, so I request
        Message 3 of 3 , Aug 1, 2004
          [I tried to send this before, but because it was cross-posted to
          haskell-cafe, I used the wrong from address. Nobody replied on
          haskell-cafe, so I request that it be applied unless there are
          objections here.]

          haskell-cafe, you are listed as the maintainer of the vim haskell syntax
          highlighting script. :-)

          lhaskell.vim uses the tex.vim syntax script, which does "set
          iskeyword-=_". This makes editing haskell rather uncomfortable (eg, the
          '*' command doesn't work right). I don't know what breaks if you "set
          iskeyword+=_", but getting tex highlighting right is less important than
          haskell editing, so I suggest this patch.

          Andrew

          --- lhaskell.vim.orig 2004-07-29 16:48:39.000000000 -0700
          +++ lhaskell.vim 2004-07-29 16:50:16.000000000 -0700
          @@ -86,6 +86,8 @@
          runtime! syntax/tex.vim
          unlet b:current_syntax
          endif
          + " This messes up tex a bit, but is better for Haskell.
          + set isk+=_
          endif

          " Literate Haskell is Haskell in between text, so at least read Haskell
        Your message has been successfully submitted and would be delivered to recipients shortly.