Show Menu
Cheatography

Logseq - Vim Plugin Cheat Sheet by

Logseq Vim Plugin is amazing, but has a LOT of options so here's my cheatsheet to help memorize them.

Movement

Move to next line
j
Move to previous line
k
Highlight focus out to parent level
h
Highlight focus into child level
l
Move to next sibling
J
Move to previous Sibling
K
Go to top of page
T
Go to bottom of page
G
Unfold block
zo
Fold block
zc
Unfold hierar­chi­cally
zO
Fold hierar­chi­cally
zC
Follow first link in block
CTR+SH­IFT­+Enter

Mark

Save current page or block as mark to NUMBER
N+m
Go to saved mark
N+'
Load saved mark on sidebar
N+ctrl+'
Marks allow for bookma­rking locations in your Graph, N can be any number from 1 to infinity

Search Web

Baidu
sb
Wikipedia
se
Google
sg
Github
sh
Stacko­verflow
ss
Youtube
sy
This searches the current block on the web
 

Edit

Edit end of line
a or A
Edit begin of line
i or I
Insert block below
o
Insert block above
O
Undo
u
Redo
ctrl+r
Change block to lowercase
gu
Change block to UPPERCASE
gU

Organize Notes

Outdent
H
Indent
L
Copy Current Block
yy
Copy Current Block ref
Y
Cut Current Block
dd
Paste to next sibling
p
Paste to previous sibling
P

Search Page

Search page
/
Next match
n
Previous match
N

Slash Commands

Insert Emoji
/Insert Emoji
Sort children from a to z
/Sort Blocks
Sort children from z to a
/Reverse Sort Blocks
Random block background color
/Random Bg Color
Random block color to children
/Children Random Bg Color
 

Command mode

:s
Replace current block according regex, e.g. s/foo/­bar/gi, Notice it support Regex modifiers.
:marks
Show marks
:delm
Delete specific mark ids, e.g. :delm 1 2 3
:delm!
Delete all marks
:m
Go to merk, e.g. :m1
:go
Go to page or block
:re
Rename current page, if exists, it will merge
:undo
Undo
:redo
Redo
:lorem
Lorem Ipsom generator
:emoji
Emoji picker
:sort
Sort child blocks
:bg
Set background color
:bg-random
Set random bg color
:bg-clear
Remove bg color
:copy-path
Get absolute path for use outside logseq
 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          More Cheat Sheets by bgrolleman

          Logseq Cheat Sheet