question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

jedi-vim + supertab does not complete variables names?

See original GitHub issue

Please bear with me if this is a newbie question — I am quite a newbie with jedi-vim. I have this on my .vimrc:

Plug 'ervandew/supertab'
    let g:SuperTabDefaultCompletionType = "context"
    let g:SuperTabContextDefaultCompletionType = "<c-x><c-o>"
    "let g:SuperTabRetainCompletionDuration = "session"
    let g:SuperTabLongestEnhanced = 1
    let g:SuperTabCrMapping = 0
    augroup Supertab
        autocmd!
        autocmd FileType text call SuperTabSetDefaultCompletionType("<c-n>")
        autocmd FileType tex call SuperTabSetDefaultCompletionType("<c-n>")
    augroup END
"
Plug 'davidhalter/jedi-vim'
    let g:jedi#auto_vim_configuration = 0
    autocmd FileType python setlocal completeopt-=preview
    let g:jedi#show_call_signatures = "2"

and while jedi-vim works ok for my editing in Python, it never suggest autocompletion on variables. For example, if I have

start_time = -1
if start_

and press TAB I have a "Omni completion" pattern not found error. What am I doing wrong? Commenting out or in let g:jedi#auto_vim_configuration = 0 did not change things.

Thanks!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
Rmanocommented, May 6, 2016

Ok — found it. I had a remnant autocmd around I do not know from where. Thanks a lot …

0reactions
blueyedcommented, May 6, 2016

Curiosly, it works with plain <kbd>C-n</kdb>…

That is Vim’s builtin keyword completion, which is different from omni-completion.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't get Jedi's autocompletion on SuperTab
As a simple solution, try adding this line to your vimrc: let g:SuperTabDefaultCompletionType = "context". This will result in the following ...
Read more >
Vim Supertab: Pressing tab after dot doesn't complete
I am writing a simple line of java Integer.toHexString . This has appeared in other parts of the file. If I press tab...
Read more >
Vim: Supertab not working - Ask Ubuntu
You need to use omnifunc to provide the completion. It will pop up a menu to allow for completion. More information here.
Read more >
SuperTab - Do all your insert-mode completion with Tab. - Vim
package script version date Vim version user supertab.vmb 2.1 2014‑04‑09 7.0 Eric Van Dewoestine supertab.vmb 2.0 2012‑06‑01 7.0 Eric Van Dewoestine supertab.vba 1.6 2011‑07‑20 7.0 Eric...
Read more >
leger / jedi-vim - Explore · GitLab
If your VIM does not meet these requirements, the parameter recommendation list may not appear when you type an open bracket after a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found