vimrc: use setlocal for autocmd

autocmd is executed when certain properties are met. Hence,
the settings set should be buffer-local only.