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

3335 active golfers, 11354 entries

Leaderboard (lowest score wins):
47
#3241 - Kyle Slattery / @kyleslattery

12/28/2010 at 10:23PM

47
#3242 - Jody Hamilton / @JodyHamilton

12/29/2010 at 06:08PM

47
#3243 - Nicolas Ledez / @nledez

12/29/2010 at 08:36PM

47
#3244 - 宮谷 和尭 / @38valleys

02/12/2011 at 06:42AM

47
#3245 - Zuzana Dostalova / @Jocinka

01/17/2014 at 10:22PM

47
#3246 - starrynte / @starrynte

07/10/2014 at 05:44PM

47
#3247 - Thomas Ruoff / @TheeApeman

02/10/2018 at 10:25PM

47
#3248 - JuanDa Celis / @JuanDaCelis5

08/15/2018 at 09:07PM

47
#3249 - Kåre Andersen / @repl_yell

03/17/2021 at 07:55PM

48
#3250 - Marcus Ahnve / @mahnve

12/29/2010 at 12:28AM

48
#3251 - Barespamtak / @barespamtak

09/06/2017 at 08:07AM

49
#3252 - Brent Goldman / @bgold

12/28/2010 at 09:32PM

49
#3253 - ejel / @ejel

04/14/2011 at 04:03AM

49
#3254 - Jesse Hixson / @jhixson

06/20/2014 at 08:52PM

50
#3255 - Dan / @mental_thinking

12/29/2010 at 06:12AM

50
#3256 - pawelmhm / @pawelmhm

03/07/2014 at 08:03PM

50
#3257 - Charlie Massry / @charlesmassry

09/03/2014 at 12:19AM

51
#3258 - Robert Lee-Cann / @leeky

01/29/2014 at 12:42PM

51
#3259 - Mark Tareshawty / @tarebyte

04/24/2015 at 09:54PM

51
#3260 - Aaron / @_Lordofthevoid_

11/24/2019 at 09:54AM

51
#3261 - Kamil Rocki / @rockikamil

06/01/2021 at 10:22PM

52
#3262 - Max Mays / @notcaring42

10/14/2013 at 03:30PM

52
#3263 - Timo Böhm / @TimoBohm

11/26/2019 at 06:53AM

53
#3264 - Georgy Kostyanikov / @gkostyanikov

08/05/2013 at 01:01PM

53
#3265 - David M / @ohhhmandyyy

01/15/2014 at 11:28PM

53
#3266 - Ewan Z / @ewancoder

02/03/2014 at 06:42AM

53
#3267 - Mohd Faiz Hasim / @faizhasim

03/06/2015 at 04:41AM

53
#3268 - Robert Xu / @RobertX97592288

11/29/2018 at 01:26AM

53
#3269 - Sam / @MasKeo13

11/15/2019 at 12:12AM

54
#3270 - Casey Howard / @caseyhoward

04/07/2011 at 01:13AM