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