separated out the VIM process into a separate script