DEV Community

Discussion on: Editor Wars: VIM as a perfect Python IDE

Collapse
 
rabbitjazz profile image
RabbitJazz

Yo !

Like the setup, wish to know what debugger you're using and if you could write a lil' about it's setup.
Have you tested out LSP for python in vim? If so what are your thoughts?
I personally found pyls to be lacking autocomplete functionality but for C/C++ It proved better results than YCM.

Collapse
 
bezirganyan profile image
Grigor Bezirganyan

Hey, thanks for the feedback!

Actually the debugging is one of the things I miss from PyCharm. I usually use debugger only when I feel that debugging with printing (logging in python) will not help me or will take more time (While coding in C++ I used debugger a lot, and had GDB integrated in vim with ConqueGDB Plugin). Sometimes when I really need a debugger I open PyCharm, debug and go back to vim :). Nevertheless, I am going to give vimpdb a try, will write about it if it proves itself useful.

No, I haven't tested LSP, my autocomplete path was this way:

  • Used YCM
  • Found Kite, started to use Kite for personal projects (since it was closed source and probably uploaded my code to their servers I couldn't use it in workplace's machine)
  • Finally went back to YCM, on my machine too
  • Learned that Kite now does the processing on local machine, but still it is closed source, you can never learn :D

Actually I will try LSP now, and see how it works for me!

Collapse
 
rabbitjazz profile image
RabbitJazz • Edited

Thanks for the response :)
I’m still a student so in the mean time it doesn’t bother me using kite even though it’s a lil’ unsafe. I didn’t try YCM with python, what are your thoughts about it compared to kite ?

As for the debugger, It’s a lil’ annoying to hit 2 keys instead of 1 compared to PyCharm using the standard pdb. Vimpdb seems a better way to integrate it with my workflow but based on the documentation, it won’t support python 3.0 +, only 2.4-2.7.
Please prove me wrong haha..

Nvim terminal is a bit buggy for me, so I’ll
test out ConqueGBD.. Demo looks good, hope you can customize it (color wise :p)

PS: Wish to find some more vim buddies as nobody in my college even heard of vim, nor wishes to learn about it unfortunately.. Didn’t find a way to contact you privately though.

Thread Thread
 
bezirganyan profile image
Grigor Bezirganyan

Kite was pretty good for me, nevertheless, I have seen reviews that since it works locally now (or so they say :) ), it became worse. YCM is pretty good. The difference is that Kite uses ML to make suggestions. For example when you type import numpy, it will suggest as np as continuation. Not smth necessary but pretty cool :D

Actually, I have in mind to build smth like Kite but completely open-source (If I find time of course) :D I think LSTM will do the job :)

Ah Yeah, I missed that part about python 3. Guess I will not try it then :D Will search for alternatives, or stick to logging and occasionally PyCharming.
Keep me informed if you find something cool.

I used ConqueGBD really much when I was working on C++ projects. It is really good. Actually I believe there is a way to make GDB work for python as well. Will need some tweaking though. If I remember correctly (I used it last around 2 years ago) it picks your color scheme colors.