vim Vundle 外掛管理器的安裝

babyyellow發表於2016-04-14


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
3  
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 上下載相應的外掛包並自動安裝. 

下圖是個程式碼自動補全的螢幕截圖. 


vim Vundle 外掛管理器的安裝

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/133735/viewspace-2081169/,如需轉載,請註明出處,否則將追究法律責任。

相關文章