[prev in list] [next in list] [prev in thread] [next in thread] 

List:       vim
Subject:    Re: How to Prevent "Spaces to Tabs" Optimisation in VIM?
From:       Paul Brannan <pbrannan () atdesk ! com>
Date:       2002-12-30 19:35:48
[Download RAW message or body]

On Mon, Dec 30, 2002 at 07:21:40PM +0530, Ranjit Mathew wrote:
> Unfortunately, Makefiles are still ruined because the "expandtab"
> causes the leading tab to convert to 8 spaces as I enter multiple
> commands for a target... :-(

The way I deal with this is:

set et
set smartindent
au FileType make set noet
au FileType make set noai

That way I get spaces in source code and tabs in my makefiles.

Paul

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic