Jasper wrote:
> I recently switched to a new computer using Vista, on which I
> installed Vim 7.2.  I brought over my vim files, but now I'm
> finding that expandtab inadvertently gets reset from time to
> time.  I'm writing Python code, so this is quite annoying...
>
> In my _vimrc I have (amongst other things):
> set expandtab
>
> and later:
> autocmd FileType python set sw=4 ts=4 expandtab

Use this command to see what is setting the option:

:verbose set expandtab?

The correct procedure is to leave expandtab at its default (on)
and put what you need for Python in an 'after' directory. See:
http://vim.wikia.com/wiki/Indenting_source_code

John


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to