0

I use Python-mode (pymode) in Vim. When I begin typing an import statement,

from foo import bar

Pymode auto inserts import such that I end up with

from foo import import bar

How can I prevent Pymode from auto inserting/completing import?

2 Answers 2

1

I experienced this behaviour using Jedi-vim, specifcally the smart_auto_mappings feature which is enabled by default.

You can disable it by adding:

let g:jedi#smart_auto_mappings = 0

To your ~/.vimrc

Sign up to request clarification or add additional context in comments.

Comments

1

You may like to disable python-mode auto completion by putting let g:pymode_rope_completion = 0 in your ~/.vimrc

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.