Indentation is all wrong. Any help?
I specifically use the following settings for javascript:
au FileType javascript set foldmethod=indent foldlevel=0 tabstop=2 softtabstop=2 shiftwidth=2
How can I tell vim to identify a particular region within an .html file as javascript (thus applying those settings to tha开发者_Go百科t region)?
Thx
As answered here: How do I fix incorrect inline Javascript indentation in Vim?
It's highly suggested you use the JavaScript Indent : Javascript indenter plugin
精彩评论