Live data from Hacker News

Using Vim as a Python IDE

liuchengxu.org

71–80 of 158 posts

Re: Using Vim as a Python IDE

#71

Yesterday I've downloaded VSCode and https://github.com/DonJayamanne/pythonVSCode (seriously, look at the GIFs in this repo!) for first time and I had autocompletion (with IntelliSense and documentation lookup), refactoring and code define jumping for Python code out of the box working within 10 minutes in a VirtualEnv. VSCode + one plugin (all opensource) and I had something similar to PyCharm and fast. (nothing aga…

god help me escape pycharm, i only got 4gb of ram

Both VSCode and Atom are memory intensive as well.

That being said I've used PyCharm on a system with 2 GB memory before and that does work okay, you just need to make sure that no other memory-hungry apps run at the same time (browser, email, multimedia) and that the system itself doesn't use too much memory.

Re: Using Vim as a Python IDE

#72

Nice post. I also really like you "space-vim" project. Another similarly named project — "SpaceVim" http://spacevim.org/ — was posted recently. "SpaceVim" was really upsetting because it missed so many of the important ideas of Spacemacs, such as pneumonic keybindings. "SpaceVim" is a garden variety vim distribution coopting the "Spacemacs" name, but you stayed true to the "Spacemacs" principles. Nice work!

This threw me for a second but its "mnemonic" not "pneumonic".

[deleted]

Re: Using Vim as a Python IDE

#73
post #53

Yesterday I've downloaded VSCode and https://github.com/DonJayamanne/pythonVSCode (seriously, look at the GIFs in this repo!) for first time and I had autocompletion (with IntelliSense and documentation lookup), refactoring and code define jumping for Python code out of the box working within 10 minutes in a VirtualEnv. VSCode + one plugin (all opensource) and I had something similar to PyCharm and fast. (nothing aga…

I use vim via ssh and in tmux everyday. I mostly love it. But sometimes there are merge conflicts. I've settled for xpra and kdiff3 as the mergetool. I just can't handle the problem without a GUI tool.

But isn't it still easier to use a proper IDE in the local machine with Linux/Windows/OSX gui and then just git push the code? What advantages does your setup have?

Re: Using Vim as a Python IDE

#74

Yesterday I've downloaded VSCode and https://github.com/DonJayamanne/pythonVSCode (seriously, look at the GIFs in this repo!) for first time and I had autocompletion (with IntelliSense and documentation lookup), refactoring and code define jumping for Python code out of the box working within 10 minutes in a VirtualEnv. VSCode + one plugin (all opensource) and I had something similar to PyCharm and fast. (nothing aga…

I also have been switching over to VSCode for coding. The vim plugin is pretty decent.

I still keep vim around for huge files though. I work daily with NASTRAN input and output files, routinely multiple 100 mb, sometimes multiple-gb. I edited a 10gb file earlier this week and vim didn't choke up too much. Best editor I've found so far for huge files.

Re: Using Vim as a Python IDE

#75
post #67

The one thing I'd love to see, as a vim user and a scientist, is something like Matlab/RStudio/Spyder where you can explore variables that exist within a session. Maybe it could hook up to an ipython session and you could display it in a separate terminal and send commands with vim-slime to be updated in real time. For the most part, when I need this, I revert to Rodeo (since it has vim bindings like RStudio's), but…

pycharm let's you do this! this is the only thing I missed from MATLAB. you can set a breakpoint in a script and open up the debug console and see all the live variables and run code. it works perfectly and you get Python + pycharm. I'm spoiled now and anticipate having trouble moving to another language.

It's been a while that I have used it, but I used to do that in Matlab all the time. The shortcut in the IDE was F9, I think.

Re: Using Vim as a Python IDE

#77
post #2

I keep seeing tmux mentioned recently. Can someone eli5 what it does and why it's useful?

The more you use the terminal to do complicated stuff, such as managing screens, the more you actually offload part of the work to your brain. You have to remember mapping, positions, transitions, and think every time you interact with them. This cognitive load takes CPU cycles from your brain instead of your machine, which is then not available for your current task, and of course it tires you more on the long run

That's why, while I use VIM when I have to, I much prefer the technology to handle automatically whatever it can. Like maintaining states, making them obvious and offload any fruitless decision making.

Re: Using Vim as a Python IDE

#78
I have been using vim as my primary IDE for small projects for more than a year till previous month. Everything was fine, even optimizing slow plugins was OK for me. The best plugin I used was a YCM, the best autocomplete I've seen in console world, and there were so many problems with it.

Finally I gave up and moved to NeoVim and have no issues with my vim anymore. Maybe later I will give another try to spacevim or emacs. Maybe. So far, keeping my fingers safe :D

Re: Using Vim as a Python IDE

#79

Seriously people this is 2017! We have the technology. Learn vi in order to have the same editing experience everywhere but honestly when it comes to IDEs, there are just really good software packages out there with 0 configuration hassle.

You imply that vim is somehow technological inferior to some other tool. I take issue with that. I don't use vim because I have to or some silly 'vim everywhere' argument. I use it because it is a demonstrably superior text editing appliance.

Every so often when vim irritates me I try out PyCharm or vm-whatsit, and while IDE's do have better viz for some use cases, the actual act of manipulating code in-buffer never comes close to speaking vim. And I always add the vim plugin, without them the tool would be of no use to me whatsoever.

I hope someday some tool will eclipse (no) vim, but that's simply not the case in 2017.

Re: Using Vim as a Python IDE

#80
post #70

Nice post. I also really like you "space-vim" project. Another similarly named project — "SpaceVim" http://spacevim.org/ — was posted recently. "SpaceVim" was really upsetting because it missed so many of the important ideas of Spacemacs, such as pneumonic keybindings. "SpaceVim" is a garden variety vim distribution coopting the "Spacemacs" name, but you stayed true to the "Spacemacs" principles. Nice work!

A Chinese programmer emailed me because I starred the linked SpaceVim repo. I guess there's some confusion about all the forks of this project.

Wow the same thing just happened to me to!

The maintainer of the competing "SpaceVim" project I mentioned just opened an GitHub issue on my personal dotfiles repo to spam me with his project: https://github.com/superquest/dotfiles/issues/1

Bizarre.

Post reply on HN