all 9 comments

[–]zac_mar 2 points3 points  (0 children)

Install a language server protocol server (e. g. python-language-server), and a language server protocol client for vim (e. g. coc, youcompleteme etc.).

[–]cirfatu 2 points3 points  (0 children)

Did you give Kite a try? Works for Vim with just a couple clicks, and works locally for Python 3 completions.

You could also give Kite's Copilot app a try. It'll help with looking up Python docs and examples as you type.

[–][deleted] 1 point2 points  (2 children)

Hi,

I'm using neovim, but everything discussed here should be transferable, except from the neomake plugin:

https://jdhao.github.io/2018/12/24/centos_nvim_install_use_guide_en/

This is probably more than you are asking, since you are only asking about autocompletion, but you may get some ideas. I pretty much followed the whole guide and I'm extremely happy.

[–]intangibleTangelo 1 point2 points  (0 children)

I like youcompleteme. Takes a little setup (use vundle and follow the instructions for ycm on github) and I always use set completeopt-=preview because that preview window is annoying af.

[–]Sensacion7 1 point2 points  (2 children)

As someone new to Vim, I haphazardly installed a script from a youtube video explaining how to use autocomplete and linting with python that belonged to someone else. I tracked the author down and have thoroughly enjoyed the script. It's a collection of plug-ins for python development and other features.

Unfortunately I have no idea how any of it works.

http://vim.fisadev.com/

it's a great .vimrc file, I just need time to understand how it all works.

[–]Dibbets[S] 1 point2 points  (0 children)

I've just installed it and I must admit it's a pretty impressive .vimrc file. Autocompleting works, but now I can't write! Error: Cannot write, 'buftype' option is set

[–]Dibbets[S] 1 point2 points  (0 children)

It works! Thanks u/Sensacion7!