Vim Cheat Sheet: Navigation, Editing, Search and Mode Commands, Slides of Linux skills

A comprehensive cheat sheet for vim users, covering various movements, editing commands, search functions, and mode commands. It is an essential resource for both beginners and advanced users looking to improve their productivity and efficiency in using vim.

Typology: Slides

2021/2022

Uploaded on 07/05/2022

carol_78
carol_78 🇦🇺

4.8

(59)

1K documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
w
b
^
0$
}
{
%
Wl
k
j
h
fi
H
M
L
*
/fooCl
Ctrl-N gd
Ctrl-W j
Ctrl-W p
Ctrl-W l
Ctrl-W k
:diffsplit
:6
[{
]}
#
:split
Created by vgod, Dec. 2009
:vsplit
zz
zb
zt
Ctrl-F
Ctrl-B
%
mx
'x
enter normal mode
v enter visual mode
V enter visual line mode
enter visual block mode
i enter insert mode
R enter replace mode
a append
A append at end of line
y yank/copy (range)
d delete/cut (range)
c modify (range)
x delete/cut (character)
D delete to end of line
C modify to end of line
p paste after cursor
J join lines
r replace (character)
> indent
< indent leftward
. redo
u undo
:w save(:wq save and quit)
:q quit(:q! quit anyway)
:e x edit file x
:n new window
:h vim help
:xx jump to line #xx
Vim Visual Cheat Sheet Movement/Range
Character
lkjh
word, WORD(all non-blank ch)
wb
W
e
next/prev word
next/prev WORD
end of word/WORD
^
0 $
Line
begin/end of line
begin (non-blank) of line
Paragraph, Block
}{
[{ ]}
%
prev/ next paragraph
begin/end of block
matching parenthesis
Window, File
H
M
L
zt
C-B C-F
top of win
mid of win
btm of win
scroll to
top
zz scroll to
middle
zb scroll to
bottom
prev/next page
Search
fx
*
gd
find current word
backward/forward
#
B
to character x to right
to definition of current
word
/xxx search xxx
n N next/prev search
result
Mode Commands
General Commands
EX Commands
Split window
C-W p
:vsp :sp vertically/horizontally
split
:diffssplit and diff
to last accessed window
Auto-completion [insert mode]
C-N C-P auto-complete
next/prev keyword
C-X C-F auto-complete file
name
C-W w to next window
'xmark/jump to x
mx
gg Gbegin/end of file
ESC C-[
C-v
E
e

Partial preview of the text

Download Vim Cheat Sheet: Navigation, Editing, Search and Mode Commands and more Slides Linux skills in PDF only on Docsity!

w b

^

W

l

k

j

h

f i

H

M

L

/ fooCl

Ctrl-N

gd

Ctrl-W j

Ctrl-W p

Ctrl-W l

Ctrl-W k

:diffsplit

[{

]}

:split

Created by vgod, Dec. 2009

:vsplit

zz

zb

zt

Ctrl-F

Ctrl-B

m x

' x

v V i R a A y d c x D C p J r > <. u

:w

:q

:e x

:n

:h

:xx

Vim Visual Cheat Sheet

h j k l

w b

W

e

^

[{ ]}

H

M

L

zt

C-B C-F

zz

zb

f x

gd

B

/ xxx

n N

C-W p

:vsp :sp

:diffs

C-N C-P

C-X C-F

C-W w

m x ' x

gg G

ESC C-[

C-v

E

e