Skip to main content

Raymii.org Logo (IEC resistor symbol) logo

Quis custodiet ipsos custodes?
Home | About | All pages | RSS Feed | Gopher

Vim Cheatsheet

Published: 01-01-2007 | Author: Remy van Elst | Text only version of this article


Table of Contents


Note: Not finished yet!

If you like this article, consider sponsoring me by trying out a Digital Ocean VPS. With this link you'll get $100 credit for 60 days). (referral link)

Splits

:sp - split horizontal
:vsp - split vertical
^W + l - move left
^W + k - move split up
^W + j - move split down
^W + h - move split left

Navigation

gg - go to beginning of a file
G - go to the end of the file
3G - go to the 3rd line
w - go to beginning of next word
e - go to end of word
b - go to beginning of word.
3w - go to the 3rd word.
% - go to matching parentheses
^/0 - go to beginning of line
$ - go to end of line

Typing

o - insert new line below current one
O - insert new line above current one
A - start typing at the end of this line.

Finding

Tags: cheatsheet , editor , snippets , vi , vim