Skip to main content

Keyboard shortcuts

Search history: Ctrl+r

cycle through alternatives by repeatedly hitting Ctrl+R.

  • Ctrl+left: skip one word left
  • Ctrl+right: skip one word right
  • Ctrl-U: delete to the beginning of line
  • Ctrl-K: delete to the end of line
  • Alt-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
/