vim 支持丰富的插件 ,可以更加便利的完成工作.
下面说明的是vundle.vim 的安装方案.
从以下地址下载:
https://github.com/VundleVim/Vundle.vim
linux 下面 :
mkdir -p ~/.vim/bundle
unzip Vundle.vim-master.zip
mv Vundle.vim-master ~/.vim/bundle/Vundle.vim
vi ~/.vimrc
|
1
|
set nocompatible " be iMproved, requiredfiletype off "required
|
|
2
|
" set the runtime path to include Vundle and initialize" alternatively, pass a path where Vundle should install plugins
|
|
4
|
set rtp+=~/.vim/bundle/Vundle.vim/call vundle#begin('~/.vim/bundle/')
|
|
5
|
Plugin 'VundleVim/Vundle.vim'
|
|
6
|
Plugin 'fatih/vim-go'Plugin 'wincent/command-t'
|
|
7
|
" All of your Plugins must be added before the following linecall vundle#end() " requiredfiletype plugin indent on " required" To ignore plugin indent changes, instead use:"filetype plugin on"" Brief help" :PluginList - lists configured plugins" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate" :PluginSearch foo - searches for foo; append `!` to refresh local cache" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal"" see :h vundle for more details or wiki for FAQ" Put your non-Plugin stuff after this line
|
下载 :
https://github.com/fatih/vim-go
unzip vim-go-master.zip
mv vip-go-master ~/.vim/bundle/vim-go
然后开一个vi窗口 执行
:PluginInstall
完成安装了, 如果主机能够上网, 可以下载git 客户端 ,跟curl ,可以直接从github 上下载相应的插件包并自动安装.
下图是个代码自动补全的屏幕截图.