安装 vim-X11
sudo yum install vim vim-X11
下载 配置
sudo git clone https://github.com/xunzhibin/.vim.git ~/.vim
设置 配置文件 软连接
ln -s ~/.vim/.vimrc ~/.vimrc
安装 插件(如果安装失败, 可以使用逐一单个安装)
sudo git clone https://github.com/VundleVim/Vundle.vim ~/.vim/bundle/Vundle.vim
vim +PluginInstall +qall
相关 插件
- Vundle 管理(必须)
VundleVim/Vundle.vim
- 主题
altercation/vim-colors-solarized
- 状态栏
vim-airline/vim-airline
vim-airline/vim-airline-themes
- 可视化 缩进
nathanaelkane/vim-indent-guides
- 行尾 空格(快捷删除)
bronson/vim-trailing-whitespace
- 多光标编辑
terryma/vim-multiple-cursors
- 自动 补全符号(单引号、双引号、括号等)
raimondi/delimitmate
- 快速 加环绕符号(单引号/双引号/括号/成对标签等)
tpope/vim-surround
- 代码注释
scrooloose/nerdcommenter
- 括号高亮
kien/rainbow_parentheses.vim
- 文本对齐/过滤
godlygeek/tabular
- 区域选中
terryma/vim-expand-region
- PHP语法高亮
stanangeloff/php.vim
- HTML5 语法高亮
othree/html5.vim
- 自动补全HTML/XML标签
docunext/closetag.vim
- Vuejs 组件 语法高亮
posva/vim-vue
- Vundle 管理(必须)
逐一单个安装
sudo git clone https://github.com/VundleVim/Vundle.vim ~/.vim/bundle/Vundle.vim
sudo git clone https://github.com/altercation/vim-colors-solarized ~/.vim/bundle/vim-colors-solarized
sudo git clone https://github.com/vim-airline/vim-airline ~/.vim/bundle/vim-airline
sudo git clone https://github.com/vim-airline/vim-airline-themes ~/.vim/bundle/vim-airline-themes
sudo git clone https://github.com/nathanaelkane/vim-indent-guides ~/.vim/bundle/vim-indent-guides
sudo git clone https://github.com/bronson/vim-trailing-whitespace ~/.vim/bundle/vim-trailing-whitespace
sudo git clone https://github.com/terryma/vim-multiple-cursors ~/.vim/bundle/vim-multiple-cursors
sudo git clone https://github.com/raimondi/delimitmate ~/.vim/bundle/delimitmate
sudo git clone https://github.com/tpope/vim-surround ~/.vim/bundle/vim-surround
sudo git clone https://github.com/scrooloose/nerdcommenter ~/.vim/bundle/nerdcommenter
sudo git clone https://github.com/kien/rainbow_parentheses.vim ~/.vim/bundle/rainbow_parentheses.vim
sudo git clone https://github.com/godlygeek/tabular ~/.vim/bundle/tabular
sudo git clone https://github.com/terryma/vim-expand-region ~/.vim/bundle/vim-expand-region
sudo git clone https://github.com/stanangeloff/php.vim ~/.vim/bundle/php.vim
sudo git clone https://github.com/othree/html5.vim ~/.vim/bundle/html5.vim
sudo git clone https://github.com/docunext/closetag.vim ~/.vim/bundle/closetag.vim
sudo git clone https://github.com/posva/vim-vue ~/.vim/bundle/vim-vue