Mapping | Notes |
---|---|
Ctrl+b | Prefix |
prefix % | Split new pane |
prefix o | Swap panes |
prefix z | Zoom pane |
prefix d | Detach session |
prefix s | list Sessions |
prefix q # | Show pane numbers and jump to # |
Ctrl+d | Increase pane size down |
Ctrl+u | Decrease pane size up |
Ctrl+r | Reload tmux config |
Mapping | Notes |
---|---|
Enter ~ . | Escape sequence to kill hung connections (Or just exit) |
Enter ~ ? | Escape sequence to list available escape options |
Ctrl+w
= Move to window
g;
= Go to last edit location (works across close/reopen)
]m
= Next method definition
[m
= Previous method definition
]M
= Next method end of definition
[M
= Previous method end of definition
Mapping | Notes |
---|---|
Leader + t | Test current file with rspec |
Leader + s | Run nearest spec |
Leader + l | Run last spec |
Leader + a | Run all specs |
gf | Go to the file under |
Ctrl+] | Jump to file where class under cursor is defined |
Mapping | Notes |
---|---|
Ctrl+j | Move to window on the left |
Ctrl+k | Move to window on the right |
Ctrl+l | Move to window below |
Ctrl+h | Move to window above |
Leader + | Notes |
---|---|
p | paste system clipboard with correct indentation |
h | Clear highlighted search results |
n | Toggle numbers and marks in the gutter for copy/paste etc |
Full Mappings :h ctrlp-mappings
Mapping | Notes |
---|---|
Ctrl+k | Move up in result list |
Ctrl+j | Move down in result list |
Ctrl+p | previous search |
Ctrl+n | next search |
Ctrl+s | Open result in a new split |
Ctrl+v | Open result in a new vertical split |
Ctrl+t | Open result in a new tab |
:Gdiff
= View git diff
:Gstatus
= View git status
-
= Stage/unstage file in status output
:Gread
= Read file from git (Akin to git checkout --)
Mapping | Notes |
---|---|
m | Place a mark |
m | Place a Signature mark |
`<letter | number> |
m/ | Display all alpha marks in buffer |
m? | Display all Signature marks in buffer |
m- | Remove marks on line |
m | Remove all marks in buffer |
Insert Mode Mapping | Notes |
---|---|
Ctrl+r = expression | Inserts the result of expression |
dit | delete inside HTML tag |
Ctrl+_ | Close unclosed HTML tag |
Abolish Command | Notes |
---|---|
:%Subvert/facilit{y,ies}/building{,s}/g | Replace facility with building, facilities with buildings |