开发者

turn on xml.vim ftplugin in vim

I downloaded xml.vim plugin and copied it into /usr/share/vim/vim73/ftplugin (I replaced the existing one as the one I've downloaded was more up to date).

Next I've checked :set runtimepath and made sure that the directory is listed. Then I created an emtpy xml file bla.xml outside of vim and opened this file with vim. Then I typed :filetype plugin on

According to the instructions at http://www.vim.org/scripts/script.php?script_id=1397 (that's the plugin I've downloaded) I should now have ta开发者_Python百科g completion.

I tried it by typing <hello>. According to the manual this should automatically create the closing tag as soon as I enter '>' and place the cursor between the tags.

But it's not happening. What did I miss? Syntax highlight works for xml files but this feature doesn't.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜