Skip to content

Instantly share code, notes, and snippets.

View azye's full-sized avatar
🌋

Alex Ye azye

🌋
View GitHub Profile
Ctrl+W s           split horizontally (or :sp)
Ctrl+W v           split vertically (or :vsp)
Ctrl+W h/j/k/l     change split
Ctrl+W +/-         increase/decrease height (ex. 20<C-w>+)
Ctrl+W >/<         increase/decrease width (ex. 30<C-w><)
Ctrl+W _           set height (ex. 50<C-w>_)
Ctrl+W |           set width (ex. 50<C-w>|)
Ctrl+W =           equalize width and height of all windows
Ctrl + w _ max out the height of the current split

Useful Bash

Useful bash stuff that I found during my time diving into linux. Hope somebody stumbles on this and finds it useful.

! bang shortcuts

!!

Stores the most recently run command

@azye
azye / css_units.txt
Last active December 18, 2018 05:10
em - Relative to the font-size of the element (2em means 2 times the size of the current font)
ex - Relative to the x-height of the current font (rarely used)
ch - Relative to width of the "0" (zero)
rem - Relative to font-size of the root element
vw - Relative to 1% of the width of the viewport*
vh - Relative to 1% of the height of the viewport*
vmin - Relative to 1% of viewport's* smaller dimension
vmax - Relative to 1% of viewport's* larger dimension
% - Relative to the parent element