前端之家收集整理的这篇文章主要介绍了
ubuntu 14.04 vim配置安装,
前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
一、apt-get安装和更新vim
sudo add-apt-repository ppa:jonathonf/vim
sudo apt update
sudo apt install vim
sudo add-apt-repository ppa:jonathonf/vim
sudo apt-get update && sudo apt-get upgrade
二、vim配置文档(自己的)
三、安装bundle
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
四、vim与系统共享粘贴板
sudo apt-get install vim-gnome
五、将github里面vim配置复制到本地vim ~/.vimrc,安装插件
sudo apt-get install build-essential cmake
sudo apt-get install python-dev python3-dev
cd ~/.vim/bundle/YouCompleteMe
./install.py --clang-completer
参考
" let Vundle manage Vundle,required Plugin 'VundleVim/Vundle.vim'
" 文件索引树 Bundle "scrooloose/nerdtree" " 语法检查
Bundle "scrooloose/syntastic"
" 括号自动匹配 "Bundle 'Townk/vim-autoclose'
Bundle 'jiangmiao/auto-pairs'
" 自动注释 Bundle 'scrooloose/nerdcommenter'
" 自动补全 Bundle 'Valloric/YouCompleteMe'
"Bundle 'Shougo/neocomplete.vim'
" 显示git diff状态 Bundle "airblade/vim-gitgutter" " git命令
Bundle "tpope/vim-fugitive"
" 文件查找插件 Bundle 'kien/ctrlp.vim'
" 函数模糊匹配查找 Bundle 'tacahiroy/ctrlp-funky'
" 状态栏插件 Bundle 'bling/vim-airline'
Bundle 'vim-airline/vim-airline-themes'
"Bundle 'Lokaltog/vim-powerline'
" 字符串包围/改变或去除引号/括号或者HTML标签 Bundle 'tpope/vim-surround'
" 光标多行编辑 <C-n> <C-x> <C-p> Bundle 'terryma/vim-multiple-cursors'
" 生成函数、变量列表,需要先装ctags Bundle 'majutsushi/tagbar'
" 保存vim编辑信息,比如最后的位置 Bundle 'vim-scripts/restore_view.vim'
" 垂直缩进对齐线 Bundle 'nathanaelkane/vim-indent-guides'
" 快速编辑结对符 Bundle 'gcmt/wildfire.vim'
" 快速跳转 Bundle 'Lokaltog/vim-easymotion'
" todo list跳转 Bundle 'vim-scripts/TaskList.vim'
" 颜色配色方案 Bundle 'altercation/vim-colors-solarized'
Bundle 'Lokaltog/vim-distinguished'
Bundle 'flazz/vim-colorschemes'
" python "Bundle 'klen/python-mode'
Bundle 'yssource/python.vim'
Bundle 'hdima/python-@R_404_156@'
Bundle 'hynek/vim-python-pep8-indent'
" python补全插件 Bundle 'davidhalter/jedi-vim'
Bundle 'python_match.vim'
Bundle 'pythoncomplete'
Bundle 'tlwlmy/pyfold'
"Bundle 'vim-scripts/pep8'
"Bundle 'nvie/vim-flake8'
"Bundle 'kevinw/pyflakes-vim'
"Bundle 'vim-scripts/python_fold'
"Bundle 'tmhedberg/SimpylFold'
" PHP代码折叠神器,不卡,比内置的折叠好很多 "Bundle 'rayburgemeestre/PHPfolding.vim'
" js "Bundle 'elzr/vim-json'
"Bundle 'groenewege/vim-less'
"Bundle 'pangloss/vim-javascript'
"Bundle 'briancollins/vim-jst'
"Bundle 'kchmck/vim-coffee-script'
" html "Bundle 'amirh/HTML-AutoCloseTag'
Plugin 'alvan/vim-closetag'
Bundle 'hail2u/vim-css3-@R_404_156@'
Bundle 'gorodinskiy/vim-coloresque'
Bundle 'tpope/vim-haml'
Bundle 'mattn/emmet-vim'
" vue Bundle 'posva/vim-vue'
"Bundle 'darthmall/vim-vue'