On Mon, 8 May 2006 17:30:08 -0500, Stephen Boulet wrote
> 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.

Sorry to respond to my own email, but I found a different way of doing this in
the tips section of vim.org that works fine on vim 7:

set et
set sw=4
set smarttab

Stephen

Reply via email to