Here are a few lines for the vimrc file that will make vim a little more Python friendly by providing autoindent.
syntax on set autoindent set smartindent set tabstop=4 set shiftwidth=4
Update: After settings these, I found that copying text in to vim turned out to be a nightmare. So here is how you get around that.
Type:
:set paste
before pasting, and then type
:set nopaste
when you’re done to restore the vimrc settings.
Update: I am looking for ways to improve my vimrc even more, if you have any ideas, please let me know in the comments section. Thanks!