Real Vim ninjas count every keystroke - do you?

Pick a challenge, fire up Vim, and show us what you got.

Changelog, Rules & FAQ, updates: @vimgolf, RSS.

Your VimGolf key: please sign in

$ gem install vimgolf
$ vimgolf setup
$ vimgolf put 4d1a34ccfa85f32065000004

Simple text editing with Vim

Make the pairs of lines match up by making each second line same as first

Start file
Make the pairs of lines match up by making each second line same as first:

# Appending text:
The name "Vim" is an acronym for "Vi IMproved"
The name "Vim" is an acronym for

# Editing text:
Vim is a text editor originally released by Bram Moolenaar in 1991 for the Amiga
Trivia: Vim is a text editor released by Bram Moolenaar in 1991 for the Amiga

# Deleting text:
Vim has a vi compatibility mode
Vim has a vi compatibility mode but when not in this mode Vim has many enhancements over vi
End file
Make the pairs of lines match up by making each second line same as first:

# Appending text:
The name "Vim" is an acronym for "Vi IMproved"
The name "Vim" is an acronym for "Vi IMproved"

# Editing text:
Vim is a text editor originally released by Bram Moolenaar in 1991 for the Amiga
Vim is a text editor originally released by Bram Moolenaar in 1991 for the Amiga

# Deleting text:
Vim has a vi compatibility mode
Vim has a vi compatibility mode

View Diff

5c5
< The name "Vim" is an acronym for
---
> The name "Vim" is an acronym for "Vi IMproved"
9c9
< Trivia: Vim is a text editor released by Bram Moolenaar in 1991 for the Amiga
---
> Vim is a text editor originally released by Bram Moolenaar in 1991 for the Amiga
13c13
< Vim has a vi compatibility mode but when not in this mode Vim has many enhancements over vi
---
> Vim has a vi compatibility mode

Solutions

The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!

Check out these helpful resources to improve your Vim skills... Game on.

Unlock 3129 remaining solutions by signing in and submitting your own entry
#3130 M. C. / @mczerkawski - Score: 918 - 12/29/10 @ 09:07
k<Down><Down><Down><Right><Right><Right><Down><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right> <Left><Up><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right>i<Right> "Vi IMproved"<Down><Down><Down><Down><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Right><Up><Right><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Down><Left><BS><BS><BS><BS><BS><BS><BS><Del><Down><Down><Down><Down><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Down><Esc><Right><Down><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Up><Up><Up><Up><Left><Left><Left><Left><Left><Left><Left><Left><Left>o<BS><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left>i<BS>originally <Right><Right><Right><Right><Esc>:w<CR>:wq<CR>

0 comments


Created by: @igrigorik

3130 active golfers, 10703 entries

Leaderboard (lowest score wins):
14
#811 - Alexander Scherbinin / @realmyst

02/13/2012 at 10:00PM

14
#812 - lev / @relevv

02/14/2012 at 12:15AM

14
#813 - Tim Blair / @timblair

02/16/2012 at 02:29PM

14
#814 - Scott Schlesier / @sschlesier

02/21/2012 at 07:06AM

14
#815 - 無ん垢の叫び / @john_ababa

02/21/2012 at 12:41PM

14
#816 - Adrien Friggeri / @qelf

02/25/2012 at 05:47AM

14
#817 - Aaron Massey / @akmassey

03/01/2012 at 09:59PM

14
#818 - Lukas / @cast3r

03/11/2012 at 01:25AM

14
#819 - Michael Jin / @michaeljin

03/12/2012 at 01:26AM

14
#820 - Pawel Obrok / @mrYapee

03/13/2012 at 12:50PM

14
#821 - Analog / @analogp1xel

03/18/2012 at 01:29AM

14
#822 - Augustin Trancart / @autra42

03/21/2012 at 02:11PM

14
#823 - David Xia / @davidxia_

03/23/2012 at 11:56PM

14
#824 - pmuston / @pmuston

03/27/2012 at 07:46AM

14
#825 - Garry Shutler / @gshutler

03/31/2012 at 12:31PM

14
#826 - フルメキ / @hurumeki

04/01/2012 at 03:11AM

14
#827 - Олег Коваленко / @oleg_kovalenko

04/01/2012 at 08:44AM

14
#828 - Luismi Cavallé / @cavalle

04/07/2012 at 10:23AM

14
#829 - learninghang / @learninghang

04/14/2012 at 10:48AM

14
#830 - Daumantas / @dbaltrus

04/29/2012 at 12:06AM

14
#831 - Douglas Mozeika / @moomoomozo

05/02/2012 at 10:51PM

14
#832 - Daniel Lundin / @danielundin

05/03/2012 at 11:25AM

14
#833 - Cat Dragon / @catragon

05/03/2012 at 03:22PM

14
#834 - Rob W / @brombomb

05/04/2012 at 08:52PM

14
#835 - Gareth Snow / @GarethNSnow

05/05/2012 at 12:24AM

14
#836 - Son of Bongo / @bpcode

05/05/2012 at 04:37PM

14
#837 - Kerson Hsiao / @KersonHsiao

05/12/2012 at 01:28PM

14
#838 - mnx / @mnxx

05/13/2012 at 08:48PM

14
#839 - Ben Friedland / @bfriedland174

05/17/2012 at 06:37AM

14
#840 - Jason Rudolph / @jasonrudolph

05/17/2012 at 09:56PM