jedi-vim

Jedi-vim doesn't work

拜拜、爱过 提交于 2020-01-04 07:18:31
问题 I have a issue with VIM. I'm trying to install jedi-vim according to https://github.com/davidhalter/jedi-vim but when I open vim, it report such error: initialize.py" 25L, 831C'import site' failed; use -v for traceback Error detected while processing /home/.../.vim/autoload/jedi.vim: line 285 Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/.../.vim/initialize.py", line 10, in <module> import os ImportError: No module named os And when I use Ctrl+Space in

Vim supertab and jedi-vim

怎甘沉沦 提交于 2019-12-23 10:56:35
问题 Posting as a follow up to How to check if SuperTab and jedi-vim is activated? and have done what Ingo Karkat proposed. Now I wonder what is broken and how I fix it. Here is the output: :verbose imap <tab> i <Tab> <Plug>SuperTabForward Last set from ~/.vim/bundle/supertab/plugin/supertab.vim Which looks allright to me, and... :scriptnames 1: /etc/vimrc 2: /usr/share/vim/vim72/syntax/syntax.vim 3: /usr/share/vim/vim72/syntax/synload.vim 4: /usr/share/vim/vim72/syntax/syncolor.vim 5: /usr/share

jedi-vim and YCM python indentation

ε祈祈猫儿з 提交于 2019-12-11 23:14:56
问题 I'm using YouCompleteMe vim plugin for Python dev. YCM uses jedi-vim to autocomplete python code. However, I want to configure python indentation to 2 spaces not 4 (Google Python style). How can I do this? I tried add python.vim in /ftplugin and set tabstop=2 shiftwidth=2. but it didn't work. 回答1: this solved the problem: http://bbs.archlinux.org/viewtopic.php?id=174117 so adding an after/ftplugin/language.vim in .vim folder 来源: https://stackoverflow.com/questions/26538951/jedi-vim-and-ycm

Using goto with user-defined modules in jedi-vim

馋奶兔 提交于 2019-12-11 04:42:37
问题 jedi-vim works very well with modules and functions installed on my system. For example, if I put the cursor on glob.glob() and hit <leader>d , jedi-vim brings me to the definition of glob() in /usr/lib/python/. However, for a user-defined module where a function is imported with a line like from mymodule import myfunction jedi-vim may not bring me to the function definition. It instead gives the message "jedi-vim: No documentation found for that" if the modules is not in the same directory

Cant use jedi vim on imported modules

偶尔善良 提交于 2019-12-09 23:32:04
问题 Lets say I have the next structure MyProject |--run.py |--myclass1.py |--folder | |--myclass2.py Im now editing run.py: from myclass1 import MyClass1 from folder.myclass2 import MyClass2 jedi vim works great on MyClass1, but when I try anything from MyClass2 it just shows the error: Omni completion (^O^N^P) Pattern not found How to make it complete things on myclass2? 来源: https://stackoverflow.com/questions/31094490/cant-use-jedi-vim-on-imported-modules

How to check if SuperTab and jedi-vim is activated?

青春壹個敷衍的年華 提交于 2019-12-05 00:07:47
问题 As the title states, how do I check if a plugin is loaded? When I hit tab (for SuperTab) all I get is the ordinary character "tab" inserted in my file and when I hit ctrl-space I just get thrown out of insert-mode (same behavior as hitting ESC ) 回答1: The :scriptnames command lists all scripts that have been sourced; check for the plugin name in its output. If it's missing, it is either due to a wrong installation or because 'runtimepath' is incorrect. Alternatively, if you know the mapping a

Cant use jedi vim on imported modules

心已入冬 提交于 2019-12-04 15:26:14
Lets say I have the next structure MyProject |--run.py |--myclass1.py |--folder | |--myclass2.py Im now editing run.py: from myclass1 import MyClass1 from folder.myclass2 import MyClass2 jedi vim works great on MyClass1, but when I try anything from MyClass2 it just shows the error: Omni completion (^O^N^P) Pattern not found How to make it complete things on myclass2? 来源: https://stackoverflow.com/questions/31094490/cant-use-jedi-vim-on-imported-modules

How to check if SuperTab and jedi-vim is activated?

耗尽温柔 提交于 2019-12-03 16:07:09
As the title states, how do I check if a plugin is loaded? When I hit tab (for SuperTab) all I get is the ordinary character "tab" inserted in my file and when I hit ctrl-space I just get thrown out of insert-mode (same behavior as hitting ESC ) The :scriptnames command lists all scripts that have been sourced; check for the plugin name in its output. If it's missing, it is either due to a wrong installation or because 'runtimepath' is incorrect. Alternatively, if you know the mapping a plugin should define :verbose imap <Tab> will show the mapping and from which script is was set.

Does jedi-vim conflict with YouCompleteMe?

此生再无相见时 提交于 2019-12-03 15:33:33
问题 YouCompleteMe (YCM) and jedi-vim are two vim plugins that provide autocompletion, and both use jedi underneath for Python. However it's nice to have both since jedi-vim provides some useful features in addition to documentation, like 'go to definition' and 'view docstring', while YouCompleteMe works with other languages. Since both provide Python autocomplete, is any special configuration needed to prevent the two plugins from conflicting? Or will jedi-vim's autocompleter simply override YCM

Does jedi-vim conflict with YouCompleteMe?

丶灬走出姿态 提交于 2019-12-03 05:54:53
YouCompleteMe (YCM) and jedi-vim are two vim plugins that provide autocompletion, and both use jedi underneath for Python. However it's nice to have both since jedi-vim provides some useful features in addition to documentation, like 'go to definition' and 'view docstring', while YouCompleteMe works with other languages. Since both provide Python autocomplete, is any special configuration needed to prevent the two plugins from conflicting? Or will jedi-vim's autocompleter simply override YCM in Python? The most obvious conflict is not knowing whether you are using YCM or Jedi for