Basic Operation of Vim

Some Operation of Vim

here is some basic operation of vim:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55

# delete left 1 char
d j

# delete left 3 char
d 3 j  

# delete right 1 char 
d l     

# delete right 3 char
d 3 l  

# cut the whole line
d d     

# copy the whole line
y y     
 
# paste
p       

# undo the last change
u       

# go to the next word
w       

# back to last word
b

# delete next word and into insert mode
# (which means you can change the word directly)
c w     

# change the content in "" or <> or whatever
# h, which means in  
c h "
c h <>

# redo the undo change             
<ctrl> + r 

# find something
f

# find a letter
f [letter you want to find]

# delete until =  
d f =

 
0   # go to start of the line
A   # goto end and insert
comments powered by Disqus
Built with Hugo
Theme Stack designed by Jimmy