# 阿里源 deb http://mirrors.aliyun.com/ubuntu/ vivid main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ vivid-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ vivid-updates main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ vivid-proposed main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ vivid-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ vivid main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ vivid-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ vivid-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ vivid-proposed main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ vivid-backports main restricted universe multiverse # 官方源 deb http://archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu/ trusty-proposed main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
setencoding=utf-8 let g:indentLine_char='┆' let g:indentLine_enabled = 1 set nocompatible set number set noic setguioptions-=r setguioptions-=L setguioptions-=b setshowtabline=0 setguifont=Monaco:h13 syntax on setbackground=dark set nowrap setfileformat=unix set cindent settabstop=4 setshiftwidth=4 set showmatch setscrolloff=5 setlaststatus=2 setfenc=utf-8 setbackspace=2 setmouse=a setselection=exclusive setselectmode=mouse,key setmatchtime=5 set ignorecase set incsearch set hlsearch set expandtab set whichwrap+=<,>,h,l set autoread set cursorline filetype off set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() Plugin 'VundleVim/Vundle.vim' Plugin 'Lokaltog/vim-powerline' Plugin 'scrooloose/nerdtree' Plugin 'Yggdroot/indentLine' Plugin 'jiangmiao/auto-pairs' Plugin 'tell-k/vim-autopep8' Plugin 'scrooloose/nerdcommenter' Plugin 'solarnz/thrift.vim' Plugin 'zxqfl/tabnine-vim' call vundle#end() filetype plugin indent on
安装vim插件:
1 2 3 4 5 6
cd ~/ mkdir -p ~/.vim/bundle git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim # 打开vimrc进行插件安装 vim ~/.vimrc :PluginInstall