Loading ...
Sorry, an error occurred while loading the content.

Re: How to Prevent "Spaces to Tabs" Optimisation in VIM?

Expand Messages
  • Paul Brannan
    ... 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
    Message 1 of 8 , Dec 30, 2002
    • 0 Attachment
      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
    Your message has been successfully submitted and would be delivered to recipients shortly.