I downloaded xml.vim (xmledit : A filetype plugin to help edit XML, HTML, and SGML documents ). I placed it in my ftplugins folder. I read the documentation and it says: enter :filetype plugin on
but this doesn't work, I'm still unable to make the filetype plugin work. Any suggestions?
views:
125answers:
4Before you do this, it wouldn't hurt to try `:echo if it already says xml, then this isn't going to do you any good.
Jefromi
2010-01-27 15:53:34
A:
Try putting xml.vim
in after/ftplugin/
instead of the default ftplugin folder. This ensures that you override any ftplugin settings that are defined by Vim or the Vim distribution package.
Ton van den Heuvel
2010-02-01 09:44:39
+1
A:
As jefromi suggested in his comment, the :filetype plugin on
shall be done in the .vimrc.
If you enter it manually, the filetype won't be detected on a file already opened, a call to :e
would be necessary in that case to take advantage of the automatic detection mechanism. Otherwise, you'd to specific the filetype manually (with a :set ft=xml
) as described by idimba.
Luc Hermitte
2010-02-01 10:04:24
A:
I've the same problem with plugin "xml.vim" and I put it in after/ftplugin/
. Still it doesn't work. Typing :scriptnames
shows that, it is loaded as last plugin in the list.
Fred
2010-04-30 09:33:43