david alexander currie

Command Line + Vim

February 10, 2021

This week we brushed up on command line knowledge. I’ve used the command line a fair bit so after I went through the assigned reading I took a look into Vim… something I’ve wanted to learn for sometime!

Image result for vim

I made a little cheatsheet here.

esc - exit insert mode

i - enter insert mode

:q - quit

:wq - save & quit

:q! - quit without saving

V - Visual Mode


can append a number before many of these commands to specify an amount. e.g. 10j will go down 10 lines.

h & l - left & right

j & k - up & down

G - end of page

gg - start of page

{ & } - down & up by a block of code


dd - delete line (copies to clipboard)

u - undo

ctrl + r - redo

yy - copy line

p - paste below

P - paste above

Seems very useful will continue to learn more in the future!

Written by David Currie, a current student at NYU ITP. Follow me on Twitter