In bash/readline, if you want to navigate through a command, often you have things like:
cat /home/foo/bar.txt /home/bar/baz.txt
If my cursor is at the end of the line (^e), and I want to move back to the start of the second argument, how do I move to the (next/previous) whitespace?
Readline has built-in Meta-f
(forward) and Meta-b
(backwards), but these will stop at the slashes in the paths, not move all the way to the whitespace.
vim has W
and B
which will do this, but vim movement mode is not enabled in readline/bash by default.
vi
, why not switching (and staying) invi
mode?