VIM:插件:修订间差异

来自WHY42
imported>Soleverlee
imported>Soleverlee
第18行: 第18行:
安装完在~/.vim/plugin
安装完在~/.vim/plugin


=xx=
=NERD Tree=
<source lang="bash">
git clone https://github.com/scrooloose/nerdtree.git ~/.vim/bundle/nerdtree
 
#in vim
:helptags ~/.vim/bundle/nerdtree/doc/
:help NERDTree
</source>
=XX=
[[Category:Linux/Unix]]
[[Category:Linux/Unix]]

2017年4月11日 (二) 03:32的版本

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

XX