Thursday, March 1, 2012

how to change tab and shiftwidth behaviour depending on file type.

Hey all, 
i do a lot of work in python and a lot in ruby, html, and javascript. 
What i would like is for all my python files to behave with 1 tab = 4 spaces, with the correct indent, etc..
But on the ruby,html,and javascript, i need only 2 spaces.

In both cases, i need the tabs converted to spaces.

how would i set something like this up?

thanks

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment