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!
2 comments:
I would recommend to use Eclipse with pydev for writing python code.
BTW, 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.
BTW, nice blog you have on bioinformatics, I wish I had the same perseverance writing on my blog!
Post a Comment