Results 1 to 2 of 2

Thread: matchitand filetype plugin for vim

  1. #1
    Join Date
    Oct 2007
    Location
    Europe
    Beans
    136
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    matchitand filetype plugin for vim

    Hello all,

    In order to do efficient DocBook editing in vim, I was trying to install the matchit plugin to be able to jump from an xml opening tag to its closing tag. It works, but not perfectly.

    I have followed the instructions from this link.

    I can get the help for the matchit plugin, but when I press %, I don't jumpt to the associated tag. So I decided to tell vim that the file I am editing is an xml file, by issuing the command:
    Code:
    :set filetype=xml
    And now pressing % works! And actually, it changes the syntax coloring at the same.

    So I wanted to test if the filetype recognition plugin was activated:
    Code:
    :filetype
    which returns the following:
    Code:
    filetype detection:ON  plugin:ON  indent:OFF
    So what's happening? Is it my filetype plugin which is not correctly working? Is it not recognizing the correct filetype and how to remedy it?

    Best regards,
    Last edited by Railsbuntu; November 14th, 2007 at 04:38 PM.

  2. #2
    Join Date
    May 2005
    Location
    Dallas, TX
    Beans
    116
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: matchitand filetype plugin for vim

    Using the DocBook filetype (docbk) results in matchit not functioning for me, as well. My guess is that vim doesn't apply XML rules to DocBook files, although I don't know why that would be. I don't believe that matchit is malfunctioning.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •