editing long commands in the cli using vi
Posted on
You can enable vim keybindings on the command line using:
set -o vi
You can now easily edit long commands!
Click esc
and then hit w
to jump from word to word. $
to jump to the end of the line. dw
to delete the current word. dt<spacebar>
to delete to the next space.
You can also use /
some text
<enter>
to search for things in your history!!