开发者

Vim keeps messing up my javascript syntax within an html file

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜