首页 > Web开发 > 详细

VIM node.js插件

时间:2015-12-19 17:57:19      阅读:369      评论:0      收藏:0      [点我收藏+]

单位新大神说后台要用node.js重写,围观了一下感觉很好啊,学js终于有动力了。。

在家把vim配置了一下,记录一下吧。。

在.vim/bundle文件夹下安装这些安装包:

//======

"对齐工具Tabular,Vim中的代码对齐插件,可以实现各种各样的对齐功能

Bundle ‘git clone git://github.com/godlygeek/tabular.git‘

常用命令如下 

:Tab /= 等号对齐
:Tab /:        冒号对齐
:Tab /:\zs     冒号后的文字对齐

"JS语法查错插件Jshint

Bundle ‘git clone https://github.com/walm/jshint.vim.git‘

常用命令如下 

:JSHint

"Syntastic 这是VIM中针对语法检查的扩展应用,可以更准确的定位到语法错误点

Bundle ‘git clone https://github.com/scrooloose/syntastic.git‘

"vim-Javascript JavaScript语法高亮

Bundle ‘clone https://github.com/pangloss/vim-javascript.git‘

"Vim snippets for Node.js

Bundle ‘clone https://github.com/jamescarr/snipmate-nodejs.git‘

"Vim代码提示 for Node.js 使用方法:在编辑js代码时候,按ctrl-x和ctrl-o进入提示模式。

Bundle ‘git clone https://github.com/myhere/vim-nodejs-complete.git‘

"Vim Dictionary for Node.js 

Bundle ‘git clone https://github.com/guileen/vim-node.git‘

这个要在.vimrc里加上一句这个:

"u FileType javascript 

 set dictionary+=$VIM.‘~\.vim\bundle\vim-node\dict\node.dict‘

VIM node.js插件

原文:http://www.cnblogs.com/JohannaFeng/p/5059435.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!