VIM:插件:修订间差异
imported>Soleverlee |
imported>Soleverlee |
||
(未显示同一用户的2个中间版本) | |||
第43行: | 第43行: | ||
git clone https://github.com/walm/jshint.vim.git | git clone https://github.com/walm/jshint.vim.git | ||
#vim | #vim | ||
:helptags ~ | :helptags ~/.vim/bundle/jshint.vim/doc | ||
:help jshint | :help jshint | ||
:JSHint | :JSHint | ||
</source> | </source> | ||
= | = Syntastic = | ||
<source lang="bash"> | |||
cd ~/.vim/bundle && \ | |||
git clone --depth=1 https://github.com/vim-syntastic/syntastic.git | |||
#vim | |||
:helptags ~/.vim/bundle/syntastic/doc | |||
:help syntastic | |||
</source> | |||
配置:[[VIM:Syntastic配置]] | |||
=VIM Javascript= | |||
<source lang="bash"> | |||
git clone https://github.com/pangloss/vim-javascript.git ~/.vim/bundle/vim-javascript | |||
</source> | |||
[[Category:Linux/Unix]] | [[Category:Linux/Unix]] |
2017年4月11日 (二) 08:15的最新版本
Pathogen
Pathomakes it super easy to install plugins and runtime files in their own private directories.
mkdir -p ~/.vim/autoload ~/.vim/bundle
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
.vimrc:
execute pathogen#infect()
supertab
Supertab可以实现按tab自动补全。
vim supertab.vmb
:so %
安装完在~/.vim/plugin
NERD Tree
git clone https://github.com/scrooloose/nerdtree.git ~/.vim/bundle/nerdtree
#in vim
:helptags ~/.vim/bundle/nerdtree/doc/
:help NERDTree
Tabular
cd ~/.vim/bundle
git clone git://github.com/godlygeek/tabular.git
#vim
:helptags ~/.vim/bundle/tabular/doc
:help tabular
使用下面的命令对其,例如按照等号:
:Tab /=
JSHint
cd ~/.vim/bundle
git clone https://github.com/walm/jshint.vim.git
#vim
:helptags ~/.vim/bundle/jshint.vim/doc
:help jshint
:JSHint
Syntastic
cd ~/.vim/bundle && \
git clone --depth=1 https://github.com/vim-syntastic/syntastic.git
#vim
:helptags ~/.vim/bundle/syntastic/doc
:help syntastic
VIM Javascript
git clone https://github.com/pangloss/vim-javascript.git ~/.vim/bundle/vim-javascript