Show Menu
Cheatography

Shortcuts to Learn Cheat Sheet (DRAFT) by

Shortcuts that I wish to include in my Daily Workflow

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Vim

Create abbrev­iations
:ab cra create react app
Toggle Relative Line Numbers
Cmd r
Lowercase between current position and movement m
gum
Add a "." at the end of every line in file
:%s/.*­/&.
Change until fred
c/fred/e
Condit­ional Substi­tution
:g/^\s>http/s/\-/\-<wbr>/g
Adds a wbr after each hypen when line starts with \s
>http
Carriage Return in Macro
\r
Paste a macro into register m from yanked text
:let @m="­<ctrl + r><­"­>"
:g does not work in VSCode. Hence, use it in SpaceVim

Cntl R pastes register contents at the end of the line of the Ex command. Hence, do not use it to paste a string in the middle of a line.

Git

Git's three state mgmt mechanisms
Commit Tree, Staging Index, Working Directory
 

Bash / Zsh

Check file no matter how deep it is.
cat **/fil­e_name
List (human readable, File/d­ire­ctory type, Permis­sions)
//
Limit Find Depth to current dir
find . -name "­*.p­df" -depth 1

Udemy Shortcuts

Shift <- / ->
Decrease / Increase Playback Speed
C
Toggle Captions
M
Mute
Space
Play / Pause
B
Add Note
 

cURL Flags

Pass user details in request
-u
Do a PUT Request
-X