:q
or<leader>q
orZQ
:wq
orZZ
-
ci
- change inside (ex.ciw
,ci{
) - remove and go insert mode -
[Visual]
J
andK
move selected up/down -
J
- move next line to current and keep cursor -
F=
orT=
- return to=
symbol on line -
f(
- go to near brace -
df(
- remove to near brace -
yt,
- copy symbols to,
-
vF=
- select to near=
-
A
- insert mode on end of the line -
I
- insert mode on start of the line -
o
- to make a new line -
O
- to make a line above your cursor -
:100
- go to 100 line -
%
- go to close { or '
-
<leader>q
- quit -
<leader>w
- write -
<leader>s
- vertical split -
<C-f>
- switch tab cursor -
<C-o>
- go back from ex.gd
-
>
- autoclose tag -
<leader>ta
- toggle boolean (true/false) -
<C-k>
- show keymaps
<leader>f
- files<leader>g
- grep content- `
mm
- bookmarkma
- list bookmarks
-
<leader>rn
- rename symbol -
gd
- go to definition -
gi
- go to implementation -
<leader>ca
- code action -
gr
- references -
<leader>d
- find symbols -
[d
and]d
- go to next/prev diagnostic
-
gd
- go to definition -
gi
- go to implementation -
gr
- show references -
K
- show documentation -
<leader>a
- show diagnostic -
<leader>e
- show coc extensions -
<leader>c
- show coc commands -
<leader>o
- search symbols of current document -
<C-.>
- quickfix -
<C-,>
- code actions (cursor) -
<C-m>
- code actions (file) -
Refactoring
-
<leader>rn
- rename -
<C-s>
- select range
<c-r>
- accept compltion
]a
and[a
- swap argumentga
- jump to next argument<leader>o
- organize imports<leader>a
- add missing imports
<c-\>
- open terminal