Improve smap clear
Set most recently edited file to 'R