quora

+ Subscribe

bugmenot

+ Subscribe

sublimetext2

+ Subscribe

sublimetext2

+ Subscribe

vim cheat sheet for beginners

<!–/10 | [?]–> tyler by tyler (52) in vim

When learning vim it’s nice to have a cheat sheet to refer to.

Tools:

  • 1ea vim

1Inserting text

Enter insert mode:
i
In insert mode you can type and insert text as you are used to with most other text editors.

Insert text after current character:
a

2Exit insert mode and return to command mode


3Navigation

Move to the beginning of the document:
gg
Move to the end of the document:
G
Move to the top of the screen:
H
Move to the bottom of the screen:
B
Move to the middle of the screen:
M
Move one full screen forwards:
f
Move one full screen backwards:
b
Move one half screen forwards:
d
Move on half screen backwards:
u
Move to the beginning of the current line:
0
Move to the end of the current line:
$

4Text manipulation

Delete character forward:
x
Delete character backward:
X
Delete entire line of text:
dd
Delete n lines of text:
n dd
(n is any positive integer)
To change the current word:
cw
To change the current letter:
cl


Also in this interest


Discuss this guide

var disqus_shortname = ‘howchootest’; (function() { var dsq = document.createElement(‘script’); dsq.type = ‘text/javascript’; dsq.async = true; dsq.src = ‘//’ + disqus_shortname + ‘.disqus.com/embed.js’; (document.getElementsByTagName(‘head’)[0] || document.getElementsByTagName(‘body’)[0]).appendChild(dsq); })();

Tools:

  • 1ea vim

webstarts

+ Subscribe

webstarts

+ Subscribe