5 ms·
> You can just type "set -o vi" in your shell I use the following instead, applies to bash and all other programs using readline. cat >>~/.inputrc <<EOF s
by qb45 10y ago
> You can just type "set -o vi" in your shell
I use the following instead, applies to bash and all other programs using readline.
cat >>~/.inputrc <<EOF
set editing-mode vi
EOF
- pmoriarty 10y agoI don't think that will work in zsh, which doesn't use readline. But "set -o vi" will work in both bash and zsh (and possibly other shells as well, though I haven't checked). There's no harm in doing both, though -- and that's exactly what I do.