vimrc: convert functions to plugins