Different indentation per filetype using vim
put those line in your .vimrc
autocmd Filetype html setlocal ts=2 sts=2 sw=2
autocmd Filetype ruby setlocal ts=2 sts=2 sw=2
autocmd Filetype javascript setlocal ts=4 sts=4 sw=4
Written by Orlando Del Aguila
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Javascript
Authors
Filed Under
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#