Open jeremywangjun opened 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.
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 nmapac 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.