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 3098 remaining solutions by signing in and submitting your own entry
#3099 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

3099 active golfers, 10601 entries

Leaderboard (lowest score wins):
14
#811 - Pawel Obrok / @mrYapee

03/13/2012 at 12:50PM

14
#812 - Analog / @analogp1xel

03/18/2012 at 01:29AM

14
#813 - Augustin Trancart / @autra42

03/21/2012 at 02:11PM

14
#814 - David Xia / @davidxia_

03/23/2012 at 11:56PM

14
#815 - pmuston / @pmuston

03/27/2012 at 07:46AM

14
#816 - Garry Shutler / @gshutler

03/31/2012 at 12:31PM

14
#817 - フルメキ / @hurumeki

04/01/2012 at 03:11AM

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

04/01/2012 at 08:44AM

14
#819 - Luismi Cavallé / @cavalle

04/07/2012 at 10:23AM

14
#820 - learninghang / @learninghang

04/14/2012 at 10:48AM

14
#821 - Daumantas / @dbaltrus

04/29/2012 at 12:06AM

14
#822 - Douglas Mozeika / @moomoomozo

05/02/2012 at 10:51PM

14
#823 - Daniel Lundin / @danielundin

05/03/2012 at 11:25AM

14
#824 - Cat Dragon / @catragon

05/03/2012 at 03:22PM

14
#825 - Rob W / @brombomb

05/04/2012 at 08:52PM

14
#826 - Gareth Snow / @GarethNSnow

05/05/2012 at 12:24AM

14
#827 - Son of Bongo / @bpcode

05/05/2012 at 04:37PM

14
#828 - Kerson Hsiao / @KersonHsiao

05/12/2012 at 01:28PM

14
#829 - mnx / @mnxx

05/13/2012 at 08:48PM

14
#830 - Ben Friedland / @bfriedland174

05/17/2012 at 06:37AM

14
#831 - Jason Rudolph / @jasonrudolph

05/17/2012 at 09:56PM

14
#832 - Aaron Mueller / @fu86

05/20/2012 at 04:02PM

14
#833 - Tomas Frostensson / @frostensson

05/22/2012 at 02:36PM

14
#834 - OMF / @exolon

05/25/2012 at 11:33PM

14
#835 - mwatkward / @AftrschoolSpe

06/22/2012 at 11:14AM

14
#836 - Vishal / @vishl

06/22/2012 at 08:10PM

14
#837 - Kevin Etienne / @42__kevin

07/02/2012 at 11:41PM

14
#838 - teocx / @teocx

07/08/2012 at 05:55PM

14
#839 - Chris Brown / @engineercyb

07/13/2012 at 01:31AM

14
#840 - Kaleb Hornsby / @thekaleb

07/14/2012 at 12:38AM