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):
29
#3121 - G / @drdevil44

03/22/2014 at 07:12PM

29
#3122 - Xginn / @xginn8

03/27/2014 at 02:15AM

29
#3123 - Sikado / @sikado

05/01/2014 at 06:02PM

29
#3124 - Jacob Xu / @jacobhxu

09/22/2015 at 05:01AM

29
#3125 - Igor / @trollmode

09/23/2015 at 06:47AM

29
#3126 - Jakob Renpening / @JakobHans

05/02/2016 at 01:31PM

29
#3127 - Jeppe Larsen / @jwldk

05/03/2016 at 11:02AM

29
#3128 - win me / @win_me_

08/25/2016 at 07:39PM

29
#3129 - Jan Wedekind / @wedesoft

04/06/2017 at 08:19PM

29
#3130 - Brent Woo / @BrentPWoo

10/01/2018 at 09:18PM

29
#3131 - jonbwhite / @jonbwhite

11/29/2018 at 01:26AM

29
#3132 - gino / @imGinoW

05/25/2020 at 01:06PM

29
#3133 - Silverei / @silvereii

06/23/2020 at 06:33AM

29
#3134 - thevan96 / @thevan96gmailc1

08/05/2021 at 09:03AM

29
#3135 - Chao Sang / @menglong2234

07/05/2022 at 08:55AM

30
#3136 - Marty McGuire / @schmarty

12/28/2010 at 07:47PM

30
#3137 - Carlos Laviola / @claviola

12/28/2010 at 10:59PM

30
#3138 - Colin Jones / @trptcolin

12/28/2010 at 11:04PM

30
#3139 - Edd / @edds

01/13/2011 at 04:01PM

30
#3140 - Mikhail Tabunov / @chainslash

03/03/2011 at 04:34PM

30
#3141 - Olle de Zwart / @endforward

03/13/2011 at 12:01AM

30
#3142 - 軽給 / @kei_q

04/24/2011 at 07:41AM

30
#3143 - khebbie / @khebbie

06/16/2011 at 06:55PM

30
#3144 - cheerfulstoic / @cheerfulstoic

12/21/2011 at 05:30PM

30
#3145 - Mauro Morales / @noiz777

01/31/2012 at 09:39PM

30
#3146 - Vimgolf stinks / @Vimgolfstinks

04/11/2012 at 07:58PM

30
#3147 - Markus Nilsson / @markusnilsson

07/21/2012 at 08:10PM

30
#3148 - うえっち / @uh_tomo

12/04/2012 at 03:49PM

30
#3149 - Test Name / @TestNam40721255

07/28/2013 at 03:53AM

30
#3150 - Pablo / @chambawamba358

10/02/2013 at 12:18PM