1 2 3 4 5 6 7 8 9
function prevd-or-backward-word if test -z (commandline) prevd commandline -f repaint else commandline -f backward-word end end