Lev Lvovsky wrote:
On Mar 9, 2007, at 12:36 PM, A.J.Mechelynck wrote:
":ftplugin type on" should get you "E492: Not an editor command:
ftplugin type on". It ought to be ":filetype plugin on".
sorry, meant the latter.
Where exactly did you drop the script? xml plugins are sourced in the
following order (on Unix):
$HOME/.vim/ftplugin/xml.vim
$VIM/vimfiles/ftplugin/xml.vim
$VIMRUNTIME/ftplugin/xml.vim
$VIM/vimfiles/after/ftplugin/xml.vim
$HOME/.vim/after/ftplugin/xml.vim
$HOME/.vim/ftplugin/xml.vim
If your script is meant to /replace/ the default script, it should
include, near the start,
if exists("b:did_ftplugin") | finish | endif
let b:did_ftplugin = 1
it does indeed contain that
and be located in an "early" directory. If it is meant to /supplement/
the default script without replacing it, it should not include the
above lines, and it that case it should be in an "after-directory".
it looks like since I didn't have the "filtype plugin on" in my .vimrc,
it didn't detect that I was editing a xml file, nor did I 'source' the
xml.vim once I had the filetype plugin turned on. problem solved!
I would figure that with all of the XML/HTML file editing that is done
with vim, that there would be a kitchen sink editor plugin with some
features other than the ones in xml.vim... is there something that I'm
not aware of out there, complete with Schema readers and such?
thank you for your help!!!
-lev
I don't know; I'm cc-ing this to the list.
Next time, please use "Reply to List" (if your mailer has it) or "Reply to
All" (otherwise), because "Reply to Sender" doesn't allow other Vim users to
see the reply and intervene.
Best regards,
Tony.
--
hundred-and-one symptoms of being an internet addict:
99. The hum of a cooling fan and the click of keys is comforting to you.