What is the difference between placing:

autocmd FileType ruby setlocal ts=2

in my ~/.vimrc and placing:

setlocal ts=2

in ~/.vim/ftplugin/ruby.vim?

If there is no difference, where should I place commands that are specific to one filetype?

Edit
Report