Make Vim more Python friendly…


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.

  1. No comments yet.
(will not be published)