VIM node.js插件

单位新大神说后台要用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'

"Babel 插件

Bundle'git clone https://github.com/jbgutierrez/vim-babel.git ~/.vim/bundle/vim-babel'

Bundle'git clone https://github.com/mattn/webapi-vim.git ~/.vim/bundle/webapi-vim'

这个用法得上去查查。。。

"JSON 高亮

Bundle 'leshill/vim-json'

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

"u FileType javascript 

 set dictionary+=$VIM.'~.vimundlevim-nodedict ode.dict'

原文地址:https://www.cnblogs.com/JohannaFeng/p/5059435.html