问题描述
现在,我正在使用surround.vim将文本包含在html标签中,a 插件根据CSS文件中的十六进制值突出显示文本(例如,#888将在CSS文件中具有灰色背景).
还有其他有用的插件用于Web开发吗?
建议
这是到目前为止答案中提到的插件的列表:
- finder.vim 将文本包含在html标签中
- jslint.vim 与JSlint
- emmet.vim 用于HTML和CSS高速编码
- phpfolding.vim 用于自动折叠php
- 语法用于自动语法检查E.G. php
- exuberant ctags 用于标记多种语言.
- tagbar 帮助查看/导航源,在状态区域显示call签名.
推荐答案
我已经为 this问题 > and source-code浏览/tag-list 使用社区驱动的 jshint.com (比JSlint IMO好)和Mozilla的 doctorjs (以前是JSCTAGS ).
其他推荐答案
我找到 stanttastic 公平地有用较小的PHP问题. (和/或将其与某种形式的设置php -l as:make.)进行混合.
其他推荐答案
在vim中的jslint呢.vim ?
问题描述
Right now I'm using surround.vim to enclose text in HTML tags, and a plugin that highlights text according to the hex value in the CSS file (e.g. #888 will have gray background in the CSS file).
Are there other useful plugins for web development?
Recommendations
Here is a list of the plugins mentioned in the answers so far:
- surround.vim to enclose text in HTML tags
- jslint.vim to check for JavaScript errors with JSLint
- Emmet.vim for HTML and CSS high-speed coding
- phpfolding.vim to for automatic folding of PHP
- Syntastic for automatic syntax checking of e.g. PHP
- Exuberant ctags for tagging of a wide array of languages.
- Tagbar Helps view/navigate source, displays call signature in status area.
推荐答案
I've written answers for this question and this question explaining how to get JavaScript syntax checking / linting and source-code browsing / tag-list for Vim using the community-driven jshint.com (which is way better than JSLint IMO) and Mozilla's DoctorJS (formerly jsctags).
其他推荐答案
I find Syntastic to be fairly helpful in spotting minor PHP problems. (and/or blend it with some form of setting php -l as :make.) Syntastic also shows you tidy warnings on your html.
其他推荐答案
How about JSLint right in VIM, http://github.com/hallettj/jslint.vim ?