Some Useful Cheatsheets

Contents

These cheatsheets are mostly for myself, so I probably won't make a vim cheatsheet, as they are already carved into my soul (unless it is some fancy, advanced vim motion).

Bash Shortcuts

Movement

Command Action Vim Equivilant1
Ctrl + a Goto beginning of the line 0
Ctrl + e Goto end of the line $
Ctrl + b Go back 1 char h
Ctrl + f Go forward 1 char l
Alt + b Go back 1 word b
Alt + f Go forward 1 word e
Ctrl + ] -> x Goto next char x (x can be any char) f -> x
Alt + Ctrl + ] -> x Goto previous char x (x can be any char) t -> x

Edit

Command Action Vim Equivilant1
Ctrl + d Delete char under the cursor x
Ctrl + h Delete char before cursor Backspace (Insert Mode)
Ctrl + u Delete everything before cursor d -> 0
Ctrl + k Delete everything after cursor d -> $
Ctrl + w Delete word before the cursor d -> b
Alt + d Delete word after the cursor d -> w
Ctrl + y Paste previously deleted stuff in bash p
Ctrl + _ Undo u

History

Command Action Vim Equivilant1
Ctrl + r Search upward -
Ctrl + s Search downward -
Ctrl + p move upward (Arrow up) -
Ctrl + n move downward (Arrow down) -
$ ^abc^xyz Replace first abc with xyz in last command and execute -

Misc

Command Action Vim Equivilant1
$ cd - change to previous working directory -

Linux System Call Table

Working on it

Footnotes


  1. Vim equivilant does not necessarily replicate the exact behavior

    Unless otherwise specified, Normal mode is the default.