Thursday, 11 August 2016

Setting up vim for Python

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:

b101nfo said...

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

b101nfo said...

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!