Vundlde 是一個開源的vim插件管理工具
源地址 https://github.com/VundleVim/Vundle.vim
安裝步驟
- 克隆項目到本地
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
- 配置vimrc文件
vim ~/.vimrc
- 復制下方代碼到該文件的最上面
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
call vundle#end()
filetype plugin indent on
- 開始安裝:
打開vim
:PluginInstall
如何使用
- 安裝插件
使用的步驟非常簡單。
舉個栗子,比如我們想安裝xxx插件,現在github找到他,比如地址是
https://github.com/author/xxx
那么只需要在~/.vimrc文件添加一行
Bundle 'author/xxx'
退出並重新打開vim,執行
:BundleInstall
就可以了。
