Centos vim python 开发环境配置

来源:互联网 发布:迪优美特c6网络盒子 编辑:程序博客网 时间:2024/06/05 00:48
Centos python 自动补全插件:pydiction


1 Pydiction主要包含三个文件:
python_pydiction.vim  -- Vim plugin that autocompletes Python code.
complete-dict         -- Dictionary file of Python keywords, modules, etc.
pydiction.py          -- Python script to add more words to complete-dict.


2 下载 Pydiction

mkdir ~/.vim/bundle -p

cd ~/.vim/bundle
git clone https://github.com/rkulla/pydiction.git


3 配置Pydiction
cp -r ~/.vim/bundle/pydiction/after/ ~/.vim


4 配置vimrc
vi ~/.vim/vimrc
filetype plugin on
let g:pydiction_location = '~/.vim/bundle/pydiction/complete-dict'
let g:pydiction_menu_height = 3
set ts=4
原创粉丝点击