ターン:VIM pythonオートコンプリートプラグイン:pydiction



Turn Vim Python Auto Complete Plugin



This is a pretty good script for automating Python code.

Can achieve the following automatic completion of python code:

Simple python keyword completion
Python function completion with parentheses
Python module completion
Python module function, variable completion
From module import sub-module
Pydiction plugin installation

Pydiction 1.0 later version installation configuration

Applicable to versions after VIM7.

1.python_pydiction.vim

Place the file python_pydiction.vim in the ~/.vim/after/ftplugin/ directory. If the path does not exist, you can create this folder structure yourself. (Windows is placed in a similar structure in the directory below)

2.complete-dict

Put the complete-dict file in a path of your own, this configuration will be used in the later configuration, this file is to record all python keywords.

I put this file in ~/.vim/tools/pydiction/complete-dict

3. Configure the .vimrc file
Add the following configuration to the ~/.vimrc file

[color = brown](ubuntu11.10 .vimrcが見つかりませんでしたが、sudo find / -name '* vimrc'は私がvimrcであることを検出し、vimrcの最後にこの構成を追加しました)[/ color]

'pydiction 1.2 python auto complete
filetype plugin on
let g:pydiction_location = '~/.vim/tools/pydiction/complete-dict'
'defalut g:pydiction_menu_height == 15
'let g:pydiction_menu_height = 20
Official address: http://vim.sourceforge.net/scripts/script.php?script_id=850
Original link: http://www.pythonclub.org/linux/vim/pydiction