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 56462467f20fe74c93000001

lipsum lines

Convert a quoted block of text into strings in a list.

Start file
"Lorem ipsum dolor sit amet,
consectetur adipiscing elit,
sed do eiusmod tempor incididunt...
...ut labore et dolore magna aliqua.
Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris...
...nisi ut aliquip ex ea commodo consequat."
End file
lipsum = ["Lorem ipsum dolor sit amet,",
	"consectetur adipiscing elit,",
	"sed do eiusmod tempor incididunt...",
	"...ut labore et dolore magna aliqua.",
	"Ut enim ad minim veniam,",
	"quis nostrud exercitation ullamco laboris...",
	"...nisi ut aliquip ex ea commodo consequat."]

View Diff

1,7c1,7
< "Lorem ipsum dolor sit amet,
< consectetur adipiscing elit,
< sed do eiusmod tempor incididunt...
< ...ut labore et dolore magna aliqua.
< Ut enim ad minim veniam,
< quis nostrud exercitation ullamco laboris...
< ...nisi ut aliquip ex ea commodo consequat."
---
> lipsum = ["Lorem ipsum dolor sit amet,",
> 	"consectetur adipiscing elit,",
> 	"sed do eiusmod tempor incididunt...",
> 	"...ut labore et dolore magna aliqua.",
> 	"Ut enim ad minim veniam,",
> 	"quis nostrud exercitation ullamco laboris...",
> 	"...nisi ut aliquip ex ea commodo consequat."]

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 86 remaining solutions by signing in and submitting your own entry
#87 vimgolfacc / @supergopivimgo1 - Score: 68 - 02/28/16 @ 15:34
<Esc>:%s/"//g<CR>:<Up><Up><BS><BS><BS><BS>\*.*<BS><BS><BS><BS>\(.*\)/"\1",/g<CR><End>a<BS>]<Esc>ggilipsum = [<Esc>jvG><Esc>:wq<CR>

0 comments


Created by: @coryknapp

87 active golfers, 245 entries

Leaderboard (lowest score wins):
34
#61 - mnx / @mnxx

11/14/2015 at 08:17PM

34
#62 - David Mauskop / @mauskop

11/15/2015 at 04:34PM

34
#63 - Jo / @jonearth42

11/22/2015 at 12:32PM

34
#64 - Chenut Ludovic / @7Brwa7

04/06/2016 at 01:02PM

35
#65 - Aurélien Lair / @aurelien_lair

11/14/2015 at 06:37PM

35
#66 - Sebastian Pardo / @sebpardo

02/18/2016 at 08:40PM

35
#67 - Andreas Carben / @meiner_eins

03/13/2016 at 12:23PM

36
#68 - James / @Dronak

11/13/2015 at 06:31PM

36
#69 - Joseph J. Piché / @jjpiche

11/13/2015 at 06:54PM

36
#70 - Holden Lewis / @lonnez90

12/03/2015 at 03:28AM

36
#71 - Frederik Klama / @fklama

01/27/2016 at 12:38PM

36
#72 - Remus Dalrymple / @bornintheflames

05/09/2017 at 12:53AM

37
#73 - Mendel Simon / @agentms11

12/13/2015 at 12:56AM

37
#74 - Etienne Tremel / @etiennetremel

02/06/2016 at 02:01PM

37
#75 - RockerZZY / @rocker_zzy

06/29/2020 at 11:53PM

39
#76 - Jakob Schöttl / @jschoettl

12/21/2015 at 02:38AM

39
#77 - Oliver Christ / @0liverChrist

07/12/2016 at 11:10PM

39
#78 - Chris Cummings / @mistahcummings

10/31/2016 at 02:43AM

39
#79 - Gurukandhamoorthi / @Gurukandhamoor1

07/14/2017 at 05:05PM

40
#80 - Lajos Koszti / @Ajnasz

11/29/2015 at 03:18PM

42
#81 - Jurica / @Jurica34581259

12/06/2018 at 04:27AM

44
#82 - Cory Knapp / @coryknapp

11/13/2015 at 06:05PM

44
#83 - Ashley Ryan / @aviendha25

12/21/2015 at 06:28PM

45
#84 - manfred knapp / @fred_pooshka

12/13/2015 at 01:55PM

46
#85 - Izabel Jelenić / @IzabelJelenic

12/22/2015 at 05:20PM

56
#86 - Zach Gulde / @zgulde

02/29/2016 at 05:23AM

68
#87 - vimgolfacc / @supergopivimgo1

02/28/2016 at 03:34PM