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):
49
#3331 - Brent Goldman / @bgold

12/28/2010 at 09:32PM

49
#3332 - ejel / @ejel

04/14/2011 at 04:03AM

49
#3333 - Jesse Hixson / @jhixson

06/20/2014 at 08:52PM

50
#3334 - Dan / @mental_thinking

12/29/2010 at 06:12AM

50
#3335 - pawelmhm / @pawelmhm

03/07/2014 at 08:03PM

50
#3336 - Charlie Massry / @charlesmassry

09/03/2014 at 12:19AM

51
#3337 - Robert Lee-Cann / @leeky

01/29/2014 at 12:42PM

51
#3338 - Mark Tareshawty / @tarebyte

04/24/2015 at 09:54PM

51
#3339 - Aaron / @_Lordofthevoid_

11/24/2019 at 09:54AM

51
#3340 - Kamil Rocki / @rockikamil

06/01/2021 at 10:22PM

52
#3341 - Max Mays / @notcaring42

10/14/2013 at 03:30PM

52
#3342 - Timo Böhm / @TimoBohm

11/26/2019 at 06:53AM

53
#3343 - Georgy Kostyanikov / @gkostyanikov

08/05/2013 at 01:01PM

53
#3344 - David M / @ohhhmandyyy

01/15/2014 at 11:28PM

53
#3345 - Ewan Z / @ewancoder

02/03/2014 at 06:42AM

53
#3346 - Mohd Faiz Hasim / @faizhasim

03/06/2015 at 04:41AM

53
#3347 - Robert Xu / @RobertX97592288

11/29/2018 at 01:26AM

53
#3348 - Sam / @MasKeo13

11/15/2019 at 12:12AM

54
#3349 - Casey Howard / @caseyhoward

04/07/2011 at 01:13AM

54
#3350 - Yuriy Senko / @Chaka_bum

12/23/2013 at 09:44AM

54
#3351 - cdrinion / @cdrinion

09/25/2016 at 03:00PM

54
#3352 - Gluka / @Gluka__

12/31/2018 at 11:02AM

54
#3353 - Temp / @San5nom

09/16/2019 at 01:40AM

54
#3354 - huynhminhchu / @huynhminhchu

09/22/2019 at 02:40AM

55
#3355 - Thomas Wood / @Edgemaster

12/13/2011 at 11:49PM

55
#3356 - Jamie / @jamiebikies

11/21/2012 at 03:04AM

55
#3357 - Василий Горбаченко / @ShdwPrince

09/01/2014 at 02:18PM

56
#3358 - Test Name / @TestNam40177593

07/28/2019 at 12:06PM

56
#3359 - Yusuf AKIN / @zerdeshtjuan

12/01/2021 at 12:20AM

57
#3360 - Suhas V / @vhasus

04/15/2013 at 11:38AM