Is there any way to get python omnicomplete to work with non-system modules in vim?

后端 未结 6 1331
余生分开走
余生分开走 2020-12-28 22:26

The only thing I can get python omnicomplete to work with are system modules. I get nothing for help with modules in my site-packages or modules that I\'m currently working

6条回答
  •  猫巷女王i
    2020-12-28 22:50

    I think your after the pydiction script. It lets you add your own stuff and site-packages to omni complete.

    While your at it, add the following to your python.vim file...

     set iskeyword+=.
    

    This will let you auto-complete package functions e.g. if you enter...

     os.path.
    

    and then [CTRL][N], you'll get a list of the functions for os.path.

提交回复
热议问题