1.安装jedi-vim 在.vimrc中添加: Bundle ‘davidhalter/jedi-vim’ 然后进入vim运行BundleInstall 2.安装jedi模块 sudo pip install jedi 安装完成.gethub上的配置说明: SettingsJedi is by default automatically initialized. If you don’t want that I suggest you disable the auto-initialization in your .vimrc:let g:jedi#auto_initialization = 0There are also some VIM options (like completeopt and key defaults) which are automatically initialized, but you can skip this:let g:jedi#auto_vim_configuration = 0You can make jedi-vim use tabs when going to a definition etc:let g:jedi#use_tabs_not_buffers = 1If you are a person who likes to use VIM-splits, you might want to put this in your .vimrc:let g:jedi#use_splits_not_buffers = “left”This options could be “left”, “right”, “top”, “bottom” or “winwidth”. It will decide the direction where the split open.Jedi automatically starts the completion, if you type a dot, e.g. str., if you don’t want this:let g:jedi#popup_on_dot = 0Jedi selects the first line of the completion menu: for a better typing-flow and usually saves one keypress.let g:jedi#popup_select_first = 0Jedi displays function call signatures in insert mode in real-time, highlighting the current argument. The call signatures can be displayed as a pop-up in the buffer (set to 1, the default), which has the advantage of being easier to refer to, or in Vim’s command line aligned with the function call (set to 2), which can improve the integrity of Vim’s undo history.let g:jedi#show_call_signatures = “1”Here are a few more defaults for actions, read the docs (:help jedi-vim) to get more information. If you set them to “”, they are not assigned.NOTE: subject to change!let g:jedi#goto_command = “d” let g:jedi#goto_assignments_command = “g” let g:jedi#goto_definitions_command = “” let g:jedi#documentation_command = “K” let g:jedi#usages_command = “n” let g:jedi#completions_command = “” let g:jedi#rename_command = “r”Finally, if you don’t want completion, but all the other features, use:let g:jedi#completions_enabled = 0更多Vim相关教程见以下内容:Vim学习指南 http://www.linuxidc.com/Linux/2013-08/89096.htm快速学会 Vi编辑器 http://www.linuxidc.com/Linux/2013-08/88586.htm强大的Vim 编辑器 http://www.linuxidc.com/Linux/2013-07/87544.htm在CentOS 6.2上搭建Vim开发环境 http://www.linuxidc.com/Linux/2013-07/87363.htm把Vim打造成优秀的C++ IDE http://www.linuxidc.com/Linux/2016-06/132262.htmVim技巧分享:C语言设置 http://www.linuxidc.com/Linux/2012-12/77124.htmUbuntu中设置Vim的行号 http://www.linuxidc.com/Linux/2012-12/75485.htm本文永久更新链接地址