vimrc: move functions to top