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.

ctrl + space doesn't work

See original GitHub issue

Issue

I installed the plugin by cloning the git repo to ~/.vim/bundle and then adding set rtp+=~/.vim/bundle/jedi-vim to my ~/.vimrc file.

I also had to add this line:

autocmd FileType python setlocal omnifunc=jedi#completions

(are these steps fine for installation?)

When I type for example:

import re
re.<ctrl> + <space>

nothing happens, but hitting <ctrl> + x followed by <ctrl> + o.

:map doesn’t show the binding of <ctrl> + x and <ctrl> + o, so I’m not sure how that even works.

How can I make <ctrl> + space work for autocompletion?

Versions

  • jedi-vim: latest (from master)
  • Vim / Neovim:
  • Python: 2.7

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
blueyedcommented, Feb 14, 2017

I understood that <c-x><c-o> would work? It is the default trigger for omni completion in Vim - see :h i_CTRL-X_CTRL-O.

jedi-vim should configure both in https://github.com/davidhalter/jedi-vim/blob/7ddc50829eaa8350aa2bd60f4bb04e6620329b4f/after/ftplugin/python/jedi.vim#L5-L23.

Therefore you also need to add jedi-vim’s after directory to rtp though. To make it work properly (since the after dirs should come last etc) I recommend to use a proper plugin manager like vim-plug.

0reactions
MarounMarouncommented, Feb 14, 2017

@blueyed Sure, I’ll submit a PR soon.

Read more comments on GitHub >

github_iconTop Results From Across the Web

UPDATE: Ctrl-Space Suddenly Doesn't Work; SOLVED! : r/excel
UPDATE: Ctrl-Space Suddenly Doesn't Work; SOLVED! · System Preferences > Keyboard > Input Sources > Add a random keyboard · Go to "Shortcuts"...
Read more >
control + space not working, but space + control works ...
Commendable. I just found my own problem. I have a program called "always on top" that the keyboard shortcut CTRL + SPACE makes...
Read more >
ctrl shift space not entering hard space - Microsoft Community
Right-click on the Ribbon and select Customise the Ribbon. At the bottom of the dialog, click Keyboard Shortcuts: Customize. In the Press new ......
Read more >
How to: Solve the 'Ctrl-Space (auto-complete) not working ...
Ctrl -Space doesn't do anything in Eclipse! Why can't I get auto-complete to work properly in Eclipse? I've just set up a new...
Read more >
Ctrl + Space not working for content assist on eclipse
Go to Preferences > Java > Editor > Content Assist > The "Auto activation triggers for Java:" field. Paste "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz ...
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