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?

dlmeetei
  • 9,905
  • 3
  • 31
  • 38
skyler
  • 8,010
  • 15
  • 46
  • 69

2 Answers2

1

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

dlmeetei
  • 9,905
  • 3
  • 31
  • 38
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

Chris McKinnel
  • 14,694
  • 6
  • 64
  • 67