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.
精彩评论