I'm trying to get four spaces when I hit the tab key for python code.

In my _vimrc, I have:

set expandtab
set tabstop=4
set softtabstop=4

This doesn't seem to work though. I get 8 spaces instead.

Interestingly, when I have an existing python file with tab indentation and
run the 'retab' command, I get tabs replaced by 4 spaces.

_________
Stephen      

If your desktop gets out of control easily,
you probably have too much stuff on it that
doesn't need to be there.
         Donna Smallin, "Unclutter Your Home"

Reply via email to