This is a draft cheat sheet. It is a work in progress and is not finished yet.
tmux
|
Create new window |
|
Rename window |
|
Switch to window |
|
Split horizontal |
|
Split vertical |
Ctrl+z [arrow]
or Alt + [arrow]
|
Move between panes |
|
(Un)Zoom pane |
|
Rename session |
|
Change session |
|
Create new session |
|
List sessions |
tmux [a|attach] [-t NAME]
|
Attach to session |
A session holds at least one window that holds at least one pane.
vim
|
disable highlight |
|
Case insensitive |
|
Copy lines 2 to 4 in line 10 |
|
Copy line 2 under current line |
|
Spell check: next mispelled word |
|
Spell check: previous misspelled word |
|
Spell check: spelling suggestion |
:[RANGE]s/{pattern}/{string}/[flags]
|
Replace(substitute) |
|
comment line |
|
(In visual) comment lines |
Replace:
{pattern}
: Literal or regular expression. \c
at end to case insensitive
[flags]
: g
all occurences i
for insensitive search
vim ranges
99 |
line 99 |
. |
current line(default range) |
% |
all lines(same as 1,$) |
1,99 |
Lines 1 to 99 both included |
sed
`sed 's/FOO/BAR/g' file |
Replace any FOO occurrence with BAR in file |
|
Persist changes in file |
awk
awk '{ print $1, $3 }' file
|
Print first and third column in file |
|
Use comma as a field separator(default: space) |
|
|
find
|
restrict to files(f), directories(d), links(l)... |
|
name to find. Allow blob |
|
OR |
grep
|
recursive |
|
ignore case |
|
invert match |
|
show line number |
|
pattern to search |
--include=GLOB | --exclude=GLOB
|
search/exclude files whose name match GLOB. Use {,}
for more than one value |
|
|
|
Ignore binary files |
screen
|
Attach |
Prefix |
|
Prefix(Custom) |
|
|
Detach |
|
Rename current window |
<prefix>:sessionname foo
|
Rename session |
|
Create new window |
|
Create new session named <name> |
system shortcuts
Area screenshot |
|
Area screenshot to clipboard |
|
Window screenshot |
|
Window screenshot to clipboard |
|
nvim git
|
Toggle line blame |
|
Reset hunk |
|
Stage hunk |
|