5 ms·
Ask HN: Can you share your Vim setup for Python?
I'm a recent grad and I have been using PyCharm so far. I'd like to try out coding in Vim especially because I need to code on a remote machine. Since Vim is one of the most popular choice for writing Python code, I'd love to know your setup.
Thanks!
- neduma 11y agohttps://github.com/carlhuda/janus https://github.com/carlhuda/janus
- WorldMaker 11y agoI always forget to set my defaults globally to the file type, so my python files are littered with the following vim comment towards the bottom: # vim: ai et ts=4 sts=4 sw=4 Explanation: forces auto-indent (ai), expand tabs to spaces (et), and tab stops (soft and hard) to 4 spaces.
- RaitoBezarius 11y agoIf you plan to do more than Python, you will be happy to use EditorConfig (vim plugin + .editorconfig file) Here is my config: https://github.com/RaitoBezarius/vimconfig https://github.com/RaitoBezarius/vimconfig I am more a Python developer than anything else. But, this config is handy when you do fullstack dev or Rust or Elixir or something other. :)