improve vim and r communication