Sublime and Tmux Shortcuts

· 1 min read

Sublime Text

Shortcut What it does
Ctrl + right-click add another cursor (multiple cursors)
Ctrl + D select the next occurrence of the word you selected
select one thing, hold Ctrl, select another now you can copy and paste several selections at once
Ctrl + P Go to Anything: preview the files you visited earlier
Ctrl + P, then type : jump to a line number
Ctrl + Shift + P Command Palette, e.g. to set the syntax of the file
F3 find next
Shift + F3 find previous
Ctrl + Shift + F find in files

More short notes:

Tmux (based on my ~/.tmux.conf)

The prefix I use is Ctrl + A (C-a). “Prefix, then c” means: press Ctrl + A, let go, then press c.

Sessions

Command What it does
tmux new -s myname start a new session named myname
tmux a -t myname attach to the session named myname
tmux ls list sessions
tmux kill-session -t myname kill a session

Windows (prefix, then…)

Key What it does
c create a window
w list windows
n next window
p previous window
f find a window
, rename the window
& kill the window

Panes

Key What it does
prefix, then | vertical split
prefix, then _ horizontal split
Alt + arrow keys switch between panes

Tip

In case you face an incompatibility between the agnoster theme and tmux, use tmux -u to start tmux.

Resources