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

Re: Help on mixed language indenting

Expand Messages
  • Seth Falcon
    synID() and friends is exactly what I was looking for. Now I m off to attempt a script to wire it up. Thanks! + seth
    Message 1 of 3 , Feb 5, 2004
      synID() and friends is exactly what I was looking for. Now I'm off to
      attempt a script to wire it up.

      Thanks!

      + seth

      On Thu, Feb 05, 2004 at 03:00:56PM -0500, Benji Fisher wrote:
      > If you already have the syntax highlighting, then you can write an
      > indent script that checks the syntax of the current line [1] and calls
      > the appropriate indent function. Have a look at
      > $VIMRUNTIME/indent/*.vim and the docs for
      >
      > :help synID()
      >
      > and related functions.
      >
      > HTH --Benji Fisher
      >
      > [1] I hope the two languages are not mixed within one line!
    Your message has been successfully submitted and would be delivered to recipients shortly.