I have some sections in my .vimrc that look like this:
autocmd Filetype ruby setlocal ts=2 autocmd Filetype ruby setlocal sts=2 autocmd Filetype ruby setlocal sw=2
now it seems i can convert them to this:
autocmd Filetype ruby setlocal ts=2 sts=2 sw=2
but here my question is: is there any way vim has such a structure?
<something mentioning Filetype ruby> setlocal ts=2 setlocal sts=2 ... <end>
those. can the autocmd Filetype bit autocmd Filetype somehow addressed to an action group? (this is a simple example, I really ask for more complex situations.)
vim
Peter Sep 11 '09 at 21:07 2009-09-11 21:07
source share