check for vim and apm