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

3418 active golfers, 11657 entries

Leaderboard (lowest score wins):
24
#2881 - Álvaro Castellanos / @AlvaroCaste

03/15/2015 at 12:40PM

24
#2882 - ɐʇnɥsɐpoʇ / @todashuta

03/27/2015 at 08:30AM

24
#2883 - Martijn Theunissen / @Martijn_______

04/21/2015 at 06:35PM

24
#2884 - Test / @goodbyetest1248

07/24/2015 at 05:22PM

24
#2885 - vimgolf jonnyb / @vimgolf_jonnyb

09/10/2015 at 01:21PM

24
#2886 - 규홍 / @pb2bee

04/15/2016 at 07:57PM

24
#2887 - joel / @Atree23

07/28/2016 at 05:27PM

24
#2888 - Davy Jones / @OpsDavy

09/18/2016 at 09:41AM

24
#2889 - Ralf Haffa / @fatslo

10/05/2016 at 04:29PM

24
#2890 - Clalani / @clalania

10/14/2016 at 11:25AM

24
#2891 - Alex Wang / @a1exwang

05/01/2017 at 09:05AM

24
#2892 - Richard O'Brien / @richard0b

02/15/2018 at 07:13PM

24
#2893 - Justin / @a24hourparty

05/04/2018 at 03:51AM

24
#2894 - whssrs / @whssrs1

08/16/2018 at 07:53PM

24
#2895 - Cam Smith / @Comradesmith

08/22/2018 at 08:48AM

24
#2896 - dogmeat / @dogmeat11

11/01/2018 at 09:33AM

24
#2897 - Wenbo / @nuxping1

12/28/2019 at 05:47PM

24
#2898 - brightlyopen / @brightlyopen

03/04/2020 at 06:00PM

24
#2899 - Manke Derkel / @MankeDerkel

06/03/2020 at 09:25PM

24
#2900 - Felix / @motorente

06/25/2020 at 10:30AM

25
#2901 - Ches Martin / @ches

12/28/2010 at 08:11PM

25
#2902 - Bartek Ciszkowski / @bartekci

12/28/2010 at 08:38PM

25
#2903 - Ryan Fitzgerald / @rwfitzge

12/28/2010 at 11:15PM

25
#2904 - krazylegz / @krazylegz

12/28/2010 at 11:34PM

25
#2905 - jughead jones / @jugheadjones13

12/29/2010 at 03:08AM

25
#2906 - Mike Cooper / @mythmon

12/29/2010 at 11:40PM

25
#2907 - Bart Van Geyt / @Bart_VG

12/31/2010 at 12:56AM

25
#2908 - Rohith Ravi / @entombedvirus

12/31/2010 at 10:52PM

25
#2909 - Tyler Wymer / @twymer

01/03/2011 at 10:56PM

25
#2910 - ilikecaffeine / @ilikecaffeine

01/07/2011 at 03:45AM