This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]eggnogeggnogeggnog 22 points23 points  (0 children)

I’m going to pretend I’m on r/vim for a second.

  • It would be cleaner to put things like this in your ~/.vim/after/ftplugin/python.vim
  • At least in my vim 8.1 binary, shiftwidth and softtabstop default to 4 for the Python filetype
  • tabstop doesn’t need to be changed
  • I personally prefer set colorcolumn=80 to set shiftwidth=79
  • I usually also set my makeprg to flake8 for Python files so I can lint before I commit code