[config] Moved functions from aucmd.vim to functions.vim

Change-Id: I876ef1b942ccd6025a7c01898299abf332c0eae8