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 65 remaining solutions by signing in and submitting your own entry
#66 Joseph J. Piché / jjpiche - Score: 36 - 11/13/15 @ 18:54
ilipsum = [<Esc>qqA",<Esc>jq0<C-V>5jI<Tab>"<Esc>5@qa]<Esc>ZZ

0 comments


#67 h l / lonnez90 - Score: 36 - 12/03/15 @ 03:28
j<C-V>GI<Tab>"<Esc>:%s/$/",<CR>$xr]ggilipsum = [<Esc>ZZ

0 comments


#68 Frederik Klama / fklama - Score: 36 - 01/27/16 @ 12:38
xqa>>i"<End>",<Esc>+q6@axr]gg<Left>slipsum = [<Esc>ZZ

0 comments


#69 Remus Dalrymple / bornintheflames - Score: 36 - 05/09/17 @ 00:53
ilipsum = [<Esc>A",<Esc>qq+i<Tab>"<Esc>A",<Esc>q5@qxr]ZZ

0 comments


#70 Mendel Simon / agentms11 - Score: 37 - 12/13/15 @ 00:56
:%s#\n#",\r<Tab>"#g<CR>dger]ggilipsum = [<Esc>ZZ

0 comments


#71 Etienne Tremel / etiennetremel - Score: 37 - 02/06/16 @ 14:01
ilipsum = [<Esc>qq$a",<Esc>jq5@qa]<Esc>^<C-V>5-I<Tab>"<Esc>ZZ

0 comments


#72 Jakob Schöttl / jschoettl - Score: 39 - 12/21/15 @ 02:38
ilipsum = [<Esc><C-V>G$A",<Esc><CR><C-V>GI"<Esc><C-V>GI<C-T><Esc>G$xxa]<Esc>ZZ

0 comments


#73 Oliver Christ / 0liverChrist - Score: 39 - 07/12/16 @ 23:10
<C-V>G<End>I"<Esc>gvA",<Esc>ilipsum = [<Del><Esc>jVgGG>GA<BS><BS>]<Esc>ZZ

0 comments


#74 Chris Cummings / mistahcummings - Score: 39 - 10/31/16 @ 02:43
ilipsum = [<Esc>A",<Esc>j<C-V>6G$A",<Esc>vG><C-V>GI"<Esc>GA]<Esc>ZZ

0 comments


#75 Gurukandhamoorthi / Gurukandhamoor1 - Score: 39 - 07/14/17 @ 17:05
<C-V>GI<Tab>"<Esc>gv$A",<Esc>I<BS>lipsum = [<Esc>lx/",<CR>NDA]<Esc>ZZ

0 comments


#76 Lajos Koszti / Ajnasz - Score: 40 - 11/29/15 @ 15:18
ilipsum = [<Esc>j^<C-V>GI<Tab>"<Esc>j:%s/"<BS>$/",<CR>2f"C]<Esc>ZZ

0 comments


#77 coryknapp / coryknapp - Score: 44 - 11/13/15 @ 18:05
ilipsum = [<Esc>$a",<Esc>j0qqi<Tab>"<Esc>$a",<Esc>j0q5@qhxxa]<Esc>ZZ

0 comments


#78 Ashley Ryan / aviendha25 - Score: 44 - 12/21/15 @ 18:28
ilipsum = [<Esc>:%s/\n/\",\r\t\"/g<CR>dd$hhxlxa]<Esc>ZZ

0 comments


#79 manfred knapp / fred_pooshka - Score: 45 - 12/13/15 @ 13:55
j<C-V>6jI"<Esc>:%s/$/",/g<CR>$xr]06kilipsum = [<Esc>j0<C-V>6j>ZZ

0 comments


#80 Izabel Jelenić / IzabelJelenic - Score: 46 - 12/22/15 @ 17:20
qq<Down>I"<End>",<Home><Esc>q5@q<End>xxA]<Esc>ggA",<Esc><Home>VG>Ilipsum = [<Home><Del><Esc>ZZ

0 comments


#81 Zach Gulde / zgulde - Score: 56 - 02/29/16 @ 05:23
:%s/"/<CR>:%s/.*/"&",<CR>gg<C-V>GI<Tab><Esc>Ilipsumo<BS> = <Esc><<f"i[<Esc>7jf,r]:wq<CR>

0 comments


#82 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

82 active golfers, 232 entries

Leaderboard (lowest score wins):
28
#1 - Smylers / Smylers2

11/17/2015 at 11:00AM

28
#2 - Paulo H Baumann / PauloBaumann

11/18/2015 at 03:11PM

28
#3 - chris nojima / chrisnojima

11/23/2015 at 01:12AM

28
#4 - Patrick Cichon / the_nQL

12/07/2015 at 07:48PM

28
#5 - Matthew Desjardins / Desjardins_M

12/11/2015 at 09:17PM

28
#6 - Faat / i_faat

12/18/2015 at 06:14PM

28
#7 - jackliusr / jackliusr

01/13/2016 at 05:53AM

28
#8 - Roberto Carraretto / robcarraretto

01/27/2016 at 10:57PM

28
#9 - Aleksey Zhidkov / AlexeyZhidkov

02/01/2016 at 04:59AM

28
#10 - ben kavanagh / bkava

02/23/2016 at 04:42PM

28
#11 - Michel Ganguin / tinycrazyfish

03/03/2016 at 12:27PM

28
#12 - Ram Tamtam / ramtamtamtam

06/30/2016 at 02:45PM

28
#13 - Stanislav / prstad

10/19/2016 at 11:40AM

28
#14 - trx / trxdbg

10/27/2016 at 12:50PM

28
#15 - Victor Ashton / victor_ashton

04/27/2018 at 12:26AM

29
#16 - Jon Krause / jkrause314

11/14/2015 at 09:59PM

29
#17 - John Braxler / braxler

11/17/2015 at 02:26PM

29
#18 - Urtica dioica / udioica

12/20/2015 at 08:36AM

29
#19 - John Smith / literacyisgood

03/10/2016 at 07:03PM

29
#20 - Saki Gw / Sakigw

04/10/2016 at 11:27AM

29
#21 - Turkey Man / lvturkeyman

11/24/2017 at 06:56PM

30
#22 - kris / 0xkrp

11/14/2015 at 02:52PM

30
#23 - agricantare / agricantare

11/14/2015 at 08:38PM

30
#24 - Petro Тrouq / zulolosi

11/14/2015 at 10:02PM

30
#25 - Pete Sevander / Sevanteri

11/17/2015 at 09:30AM

30
#26 - herbage / herbage2

11/18/2015 at 12:55PM

30
#27 - Casey Pearring / StandardBias

11/27/2015 at 08:55PM

30
#28 - Lifepillar / lifepillar

12/08/2015 at 11:27AM

30
#29 - Jan Path / jan_path

12/18/2015 at 12:44PM

30
#30 - retro / tryphopp

01/20/2016 at 08:10AM