optimize vimrc inner functions