Friday, July 3, 2015

vim-jedi plugin - autocomplete python


 sudo yum install vim-jedi.noarch -y


Logger. (CONTROL + SPACE)
for autocomplete.
Selecting the function shows the function help.


// To load the module info
:Pyimport os

Apart from that, jedi-vim supports the following commands
  • Completion
  • Goto assignments g (typical goto function)
  • Goto definitions d (follow identifier as far as possible, includes imports and statements)
  • Show Documentation/Pydoc K (shows a popup with assignments)
  • Renaming r
  • Usages n (shows all the usages of a name)
  • Open module, e.g. :Pyimport os (opens the os module)
Leader means / here.
C - control space

No comments:

Post a Comment