Cheatography
https://cheatography.com
Navigation
Up |
k
|
Down |
j
|
Left |
h
|
Right |
l
|
Down a page |
C-d
|
Up a page |
C-u
|
Up to next paragraph |
{
|
Down to next paragraph |
}
|
Prev. function |
[[
|
Next function |
]]
|
Up to outer brace |
[{
|
Down to outer brace |
]}
|
Right a word |
w
|
Left a word |
b
|
Beginning of file |
gg
|
End of file |
G
|
End of line |
$
|
First non-whitespace char of line |
^
|
Jump to any word |
SPC SPC <first letter of word>
|
Jump back |
C-o
|
Center buffer |
zz
|
Last place edited |
g;
|
Last file path under cursor |
gf
|
|
|
Editor
Toggle line numbers |
SPC t n
|
Toggle auto complete |
SPC t a
|
Highlight mode |
v
|
Undo |
u
|
Redo |
C-r
|
Comment out line |
g c c
|
Comment out highlighted |
g c
|
Copy |
y
|
Paste |
p
|
Paste above |
P
|
Delete |
d
|
Delete char |
x
|
Delete until right paren |
d f )
|
Replace Mode |
R
|
Replace char |
r
|
Change |
c
|
Change all between quotes |
c i "
|
Previous thing copied |
SPC r y
|
Indent highlighted text |
> and < (also 2> ...
|
Show whitespace |
SPC t w
|
Tabs to spaces |
SPC : untabify
|
|
|
Search
Find in buffer |
/<search term> Enter
n (next) N(prev)
|
Find next instance (word under cursor) |
*
|
Find prev instance (word under cursor) |
#
|
Turn off highlighting |
:nohl ENTER
|
Find in project |
SPC /
|
Find (under cursor) in project |
SPC *
|
Find and replace (all lines) |
:%s/foo/bar/gc (gci case-insensitive)
|
Find and replace (curr line) |
:s/foo/bar/gc
|
Layouts
Split window vertical |
SPC w v
|
Split window horizontal |
SPC w s
|
Switch window |
SPC <no of window>
|
Layout help |
SPC l ?
|
|
|
Cider
Jack In |
,'
|
Open REPL |
C-c C-z
|
Set REPL ns |
C-c M-n
|
Eval Buffer |
,eb
|
Eval curr. func |
,ef
|
Eval curr. func in REPL |
,se
|
Show docs |
,hh
|
Reformat buffer |
,=
|
Require missing ns |
,ram
|
Add project dependency |
,rap
|
Add require to ns |
,rar
|
Goto source code |
,gg
|
Inspect last result |
M-x 'cider-inspect-last-result'
|
Inspect last result (drill down) |
ENTER
|
Inspect last result (back out) |
C-z (exit evil) l
|
Run all tests |
,ta
|
Lisp
Slurp |
SPC k s
|
Barf |
SPC k b
|
|
Created By
Metadata
Comments
No comments yet. Add yours below!
Add a Comment