Move Vim install steps into functions