Move autocmd functions next to autocmd definition