|
Command
|
Description
|
|
h
|
Left
|
|
j
|
Down
|
|
k
|
Up
|
|
l
|
Right
|
|
Command
|
Description
|
|
yy
|
Copy line
|
|
yyp
|
Duplicate current line
|
|
yw
|
Copy word
|
|
nºy
|
Copy the nº of lines
|
|
cw
|
Change word
|
|
dd
|
Delete line
|
|
daw
|
Delete a word
|
|
dip/dap
|
Delete all lines up to the next blank line (paragraph)
|
|
L
|
End of file
|
|
H
|
Start of file
|
|
M
|
Half of file
|
|
xp
|
Invert two characters
|
|
u
|
Undo changes
|
|
C-r
|
Redo changes
|
|
Command
|
Description
|
|
gcc
|
Comments on the current line
|
|
gbc
|
Add block comment
|
|
nºgcc
|
Comments the number of lines
|
|
gcw
|
Comments a word
|
|
gc$
|
Comments from the cursor at end of line
|
|
gc}
|
Comments until the next blank line
|
|
gca}
|
Comments around curly brackets {}
|
|
gcip
|
Comments inside of paragraph
|
|
gcnº[j/k]
|
Toggle nº lines after or before the cursor
|
|
Command
|
Description
|
|
Command
|
Description
|
|
o
|
Insert cursor below
|
|
O
|
Insert cursor above
|
|
i
|
Insert cursor left
|
|
I
|
Insert cursor start line
|
|
a
|
Insert cursor right
|
|
A
|
Insert cursor end line
|
|
^
|
Start of line
|
|
$
|
End of line
|
|
G
|
Move to end of file
|
|
gg
|
Move to start of file
|
|
nºG
|
Move to line number nº
|
|
Command
|
Description
|
|
<leader>r
|
replace the current word in the entire file
|
|
<leader>t
|
Open the terminal
|
|
<leader>ff
|
Open find files
|
|
<leader>fg
|
Open find files globally
|
|
<leader>fb
|
List all buffers
|
|
<leader>ps
|
Open grep command for search files
|
|
Command
|
Description
|
|
J
|
Move the selected line(s) below
|
|
K
|
Move the selected line(s) above
|
|
vaw/viw
|
Select a word
|
|
vas
|
Select the sentence
|
|
vap
|
Select the paragraph
|
|
ggVG
|
Select all file
|
|
Command
|
Description
|
|
C-b
|
:Ex
|
|
:R
|
Close Explore(:Ex)
|
|
tr
|
:bp
|
|
ty
|
:bn
|
|
td
|
:bd
|
|
Command
|
Description
|
|
:db
|
Delete buffer
|
|
:ls
|
List buffers
|
|
:buffer nº
|
Jump to the buffer nº
|
|
:bn
|
Next buffer
|
|
:bp
|
Previous buffer
|
|
Command
|
Description
|
|
:Ex
|
Open tree files
|
|
%
|
Create a new file
|
|
d
|
Create a new directory
|
|
:w
|
Save file
|
|
:q
|
Quit
|
|
:wa
|
Save all buffers
|
|
:tabe
|
Create a new tab
|
|
/[word]
|
Search in file
|
|
n
|
Next
|
|
N
|
Previous
|
|
:move +nº
|
Move the line nº below
|
|
:move -nº
|
Move the line nº above
|
|
:%s/old/new/g
|
Replace word in file globally
|
|
:!
|
Execute a command (terminal)
|
|
:r!
|
Executes the command and inserts the result into the file
|
|
:sav
|
Saves in a new file
|
|
:so
|
Runs Ex-commands or ".lua" files from file
|
|
Command
|
Description
|
|
co
|
Choose ours
|
|
ct
|
Choose theirs
|
|
cb
|
Choose Both
|
|
c0
|
Choose none
|
|
]x
|
Move to previous conflict
|
|
[x
|
Move to next conflict
|
|
Command
|
Description
|
|
:sp
|
Split window horizontally
|
|
:vsp
|
Split window vertically
|
|
:tabe
|
Create a new tab
|
|
:tabc
|
Close current tab
|
|
:tabn
|
Next tab
|
|
:tabp
|
Previous tab
|
|
Command
|
Description
|
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.