1. 程式人生 > >ubuntu 14.04 vim配置安裝

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-syntax' 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-syntax' Bundle 'gorodinskiy/vim-coloresque' Bundle 'tpope/vim-haml' Bundle 'mattn/emmet-vim' " vue Bundle 'posva/vim-vue' "Bundle 'darthmall/vim-vue'