I\'ve got some sections in my .vimrc that look like this:
.vimrc
autocmd Filetype ruby setlocal ts=2 autocmd Filetype ruby setlocal sts=2 autocmd Filet
You can call a function, if you like:
autocmd Filetype ruby call SetRubyOptions() function SetRubyOptions() setlocal ts=2 ... endfunction