[oclug] spaces and tabs

Patrick Smith patsmith at pobox.com
Wed Jun 18 08:14:44 EDT 2003


Jon Earle wrote:
>>>Vim does that?  Cool!  I'll have to figure out how to do that as I use vim
>>>for all my unix dev work.
>>
>>:set expandtab
> 
> That is just too sweeeeeet!  Tomorrow I fix my perl scripts and never
> will I need to worry about this again!

Unfortunately, this has one main drawback:  makefiles, where the 
space/tab distinction is important.  Assuming you have "set expandtab" 
in your .vimrc, when editing a makefile you can either manually ":set 
noet" or type control-v, tab to get a real tab character.

(It's almost certainly possible to get vim to automatically turn off
expandtab when editing makefiles.  Personally, I've never gotten around 
to it.)




More information about the OCLUG mailing list