use previous command instead of current for sudo
use vi-mode