3 ms·
This is coming from someone that used IntelliJ before moving to Sublime Text 3 before moving to vim for Python development. I am by no means a master of vim's
by ayrx 12y ago
This is coming from someone that used IntelliJ before moving to Sublime Text 3 before moving to vim for Python development.
I am by no means a master of vim's varied features but the best productivity gain for me is vim running in the terminal. I use a lot of command line tools (grep still beats most things for search and the git command line tool is still better than any editor plugins), it's just much more convenient for me when it's all in the terminal and I can switch between them seamlessly with keyboard commands especially when using something like tmux.
- netheril96 12y agoMuch as I like vim, I think IntelliJ is still better than whatever tools one can cobble together for pure Python development.
- ayrx 12y agoI recognize editor preferences is a deeply personal taste but it's been very different for me. :) I used to swear by IntelliJ but after taking a day to configure Sublime Text (and then vim), I very much prefer them.
- netheril96 12y agoPycharm has automatic formatting, much better autocompletion (it deduces type based on context), continuous PEP8 check, class hierarchy, refactoring support and a terrific debugger. Don't get me wrong. I am not trying to bash your choice. I am merely curious how to achieve the similar in vim, because I have some urges to switch as well.
- ayrx 12y agoMostly through plugins really. Jedi is really awesome for autocomplete: https://github.com/davidhalter/jedi-vim https://github.com/davidhalter/jedi-vim This plugin really helps in formatting code: https://github.com/hynek/vim-python-pep8-indent https://github.com/hynek/vim-python-pep8-indent There's another plugin that helps with PEP8 linting: https://github.com/nvie/vim-flake8 https://github.com/nvie/vim-flake8 I just use a combination of print statements and pdb for debugging, I don't trust automatic re-factoring for Python though, so I tend to do them manually with regex. What really helps vim beat PyCharm/IntelliJ for me is the fact that I work with a lot of C code as well as Python. IntelliJ's C support sadly isn't quite there yet.