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

108210Re: How to apply the right indentation

Expand Messages
  • Robert H
    Oct 4, 2009
    • 0 Attachment
      On 10/3/09 5:56 PM, caruso_g wrote:
      > set ts=2 sw=2 et
      > One last question. Can I set different values for different file
      > types? E.g. 4 spaces for html, 8 for php and 2 for Ruby?

      autocmd FileType perl :set ts=4 sw=4 et tw=78
      autocmd FileType xml :set ts=2 sw=2
      autocmd FileType html :set ts=2 sw=2 et tw=78

      Those are just examples...you can do your own. :-)

      You received this message from the "vim_use" maillist.
      For more information, visit http://www.vim.org/maillist.php
    • Show all 6 messages in this topic