代码改变世界

vim python extension

2019-09-20 17:01  divl  阅读(161)  评论(0编辑  收藏  举报

1. 检查vim 版本,需高于7.3。

2. Install extension manager : Vundle

git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim

3. 新建configure file : ~/.vimrc

touch ~/.vimrc

4. 配置~/.vimrc

set nocompatible              " required
filetype off                  " required

" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()

" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')

" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'

" add all your plugins here (note older versions of Vundle
" used Bundle instead of Plugin)

" ...

" All of your Plugins must be added before the following line
call vundle#end()            " required
filetype plugin indent on    " required

 

 

5: Install or update plugin

:PluginInstall