spf13 / spf13-vim

The ultimate vim distribution
http://vim.spf13.com
Apache License 2.0
15.56k stars 3.63k forks source link

Why AutoCloseTag doesn't work for xml and xhtml files ? #455

Open jeremywangjun opened 11 years ago

jeremywangjun commented 11 years ago

Quete 426,430 lines in .vimrc " AutoCloseTag { " Make it so AutoCloseTag works for xml and xhtml files as well au FileType xhtml,xml ru ftplugin/html/autoclosetag.vim nmap ac ToggleAutoCloseMappings " }

but .vim doesn't contain file ftplugin/html/autoclosetag.vim which only includes file HTML-AutoCloseTag/ftplugin/html_autoclosetag.vim.

Modify ftplugin/html/autoclosetag.vim to HTML-AutoCloseTag/ftplugin/html_autoclosetag.vim. Tag < could be auto closed with tag >, however, if open a tag (e.g. type

),it still doesn't expand the tag as soon as you type the closing > into

and places the cursor inside the tag in insert mode.

rockneverdies55 commented 11 years ago

I utilize zencoding with vim emmet plugin for this purpose so I don't have to close html tags myself.

You might give a shot too.

P.S. Actually I'm surprised that spf13 doens't contain that plugin in its default setup repertoire.