One of the most useful features of the Bash shell (Fish and Zsh too!) is the built-in keybindings that can greatly speed up your terminal workflow.
By default, your shell uses Emacs-style keybindings, but you can change to Vim-like bindings if you prefer. The following are the commands to change to Vi-bindings (and back to Emacs-bindings).
BASH: set -o vi (set -o emacs)
ZSH : bindkey -v (bindkey -e)
FISH : fish_vi_key_bindings (fish_default_key_bindings)
The following commands were shown in this video. Listed are the Emacs-bindings followed by the Vim-bindings in parentheses:
CTRL-a (0 or ^) jump to beginning of line
CTRL-e ($) jump to end of line
CTRL-f (h) move forward one char
CTRL-b (l) move backward one char
ALT-f (w) move forward one word
ALT-b (b) move backward one word
2w, Vi-mode
CTRL-k (d$) delete from this point to the end of the line
CTRL-u (d0) delete from beginning of the line to this point
CTRL-y (u
1 view
93
18
3 years ago 00:16:41 1
Essential Keybindings For Bash, Fish and Zsh
4 years ago 00:16:52 1
Mode and Keybinding Primer for the Vim-Curious
5 years ago 00:03:16 143
TOP 15 Overpass POP FLASHES - CS:GO NEW FLASHBANGS
5 years ago 00:03:34 35
Insane New Cache Molotovs - CS:GO(2019)
4 years ago 00:04:27 1
TOP 10 Overpass Molotovs - CS:GO (2020)
4 years ago 00:03:43 1
Gta V FiveM Standalone Parkour ENG/DEU
2 years ago 00:02:48 1
HOTKEYS Are Finally Here in Sons of The Forest! New Update & BIG Project Coming Soon
2 years ago 00:11:51 1
All NADES You Need On CS2 INFERNO [2023]
2 years ago 00:23:04 1
Anna Marie Pyle (Yale U./HHMI) Part 1: RNA Structure