1.新建目錄,clone源碼 2.添加配置,vim /etc/vim/vimrc ...
1.新建目錄,clone源碼
mkdir ~/.vim/bundle/ git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
2.添加配置,vim /etc/vim/vimrc
set nu set encoding=utf8 "設置文件編碼 set paste "粘貼文本,不改變原先排版格式 set expandtab "空格代替製表符 set autoindent set tabstop=4 set softtabstop=4 "縮進為4個空格 set shiftwidth=4 "縮進為4個空格 set backspace=indent,eol,start "回退鍵 "indent: 如果用了:set indent,:set ai 等自動縮進,想用退格鍵將欄位- set incsearch "在輸入時逐個字元搜索 set hlsearch set ignorecase "忽略大小寫 "set mouse=a set foldlevel=0 syntax on "高亮顯示 set autoread set showmatch set cursorline set cursorcolumn set report=0 set ruler syntax enable set fdm=indent set nocompatible "not compatible with vi filetype off "required set rtp+=~/.vim/bundle/vundle/ call vundle#begin() "let Vundle manage Vundle Plugin 'VundleVim/Vundle.vim' Plugin 'gmarik/vundle' Plugin 'Valloric/YouCompleteMe' Plugin 'L9' call vundle#end() set filetype=python