I wanted vim to automatically indent by 4 spaces when I'm editing a Python file. Following the instructions on wiki.python.org, I put this in my ~/.vimrc file:
syntax on
filetype indent plugin on
set modeline
set tabstop=8
set expandtab
set shiftwidth=4
set softtabstop=4
Works perfectly!
I would recommend to use Eclipse with pydev for writing python code.
ReplyDeleteBTW, nice blog on bioinformatics, I wish I could be as constant as you in my blog
I recommend using Eclipse with PyDev to write code on Python.
ReplyDeleteBTW, nice blog you have on bioinformatics, I wish I had the same perseverance writing on my blog!