From: Alan Burch Date: 2006-03-18T15:04:15+09:00 Subject: Re: Vim autoindenting broken? > I do this by inserting the lines > set shiftwidth=2 > set tabstop=2 > set softtabstop=2 > set expandtab I generally prefer vim to gvim, but on dos I do go to gvim as it can be quicker to get to than opening a monad shell or the like. I too put the set directives at the bottom of the vimrc file, also important if you're going to turn your work over to clients or if you have others who edit your files is to put important directives at the top of the file so others don't mess up your settings, this is the one that I like: # vim: set expandtab tabstop=2 shiftwidth=2 foldmethod=marker: That way it comes back to you the way you want it no matter which vimrc file it was edited under.... Good Luck with vi, it's served me well Alan -- Posted via http://www.ruby-forum.com/.