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.

g:jedi#popup_select_first = 0 did not affect

See original GitHub issue

Hi.

When I set vimrc like following, popup always selected first item.

set completeopt=menu
let g:jedi#popup_on_dot = 1
let g:jedi#popup_select_first = 0

I do not want to select first item.

Is there any settings for not select first item?

env

MacOS 10.8.4 Python 2.7.5 Vim 7.4.000(MacVim)

Regards,

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:23 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
copituxcommented, Oct 17, 2013

I see this behaviour

It doesn’t work. It selects the first item

let g:jedi#popup_select_first = 0
let g:jedi#auto_vim_configuration = 0

It works

let g:jedi#popup_select_first = 0
let g:jedi#auto_vim_configuration = 1
au FileType python setlocal completeopt-=preview " The reason to deactivate jedi#auto_vim_configuration

I try this with the first case, but the trouble persists

 function! jedi#complete_opened()
     if pumvisible() && g:jedi#popup_select_first && stridx(&completeopt, 'longest') > -1
         " only go down if it is visible, user-enabled and the longest option is set
-       return "\<Down>"
+       return ""
     end
     return ""
 endfunction

I use Shougo/neocomplete

1reaction
heavenshellcommented, Sep 6, 2013

@davidhalter Thank you for your reply.

I set set completeopt=menu in .vimrc

When I start vim $ vim sample.py :set completeopt shows completeopt=menu

Than I input like following,

import os
os.

After popup shows and cancel popup, :set completeopt shows completeopt=menuone

my vimrc jedi.vim settings are following.

set completeopt=menu
let g:jedi#auto_initialization = 1
let g:jedi#popup_on_dot = 1
let g:jedi#show_call_signatures = 0
let g:jedi#auto_vim_configuration = 0
let g:jedi#popup_select_first = 0

Best regards,

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

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