Keyboard shortcuts
Search history: Ctrl+r
cycle through alternatives by repeatedly hitting Ctrl+R.
Navigation
Ctrl+left
: skip one word leftCtrl+right
: skip one word rightCtrl-U
: delete to the beginning of lineCtrl-K
: delete to the end of lineAlt-D
: delete to the end of word
Vim
More powerful than vi, most popular editor on Linux https://www.youtube.com/watch?v=5r6yzFEXajQ
# Close without save
:q
# Save & close
:wq
# Select all and delete (actually move to buffer)
:%d
# Select all and copy to buffer
:%y
# paste the buffer.
p
# Delete entire file
dG
# Delete Line
dd
# Search
/