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 5796493277f1fc12b1002044

Array of characters

We all copy paste things off the internet, but the syntax doesn't look right. Fix it as fast as possible.

Start file
# pound	< left angle bracket	$ dollar sign	+ plus sign
% percent	> right angle bracket	! exclamation point	` backtick
& ampersand	* asterisk	' single quotes	| pipe
{ left bracket	? question mark	= equal sign
} right bracket	/ forward slash	: colon	 
  blank spaces	@ at sign
End file
["#", "<", "$", "+", "%", ">", "!", "`", "&", "*", "'", "|", "{", "?", "=", "}", "/", ":", " ", "@"]

View Diff

1,6c1
< # pound	< left angle bracket	$ dollar sign	+ plus sign
< % percent	> right angle bracket	! exclamation point	` backtick
< & ampersand	* asterisk	' single quotes	| pipe
< { left bracket	? question mark	= equal sign
< } right bracket	/ forward slash	: colon	 
<   blank spaces	@ at sign
---
> ["#", "<", "$", "+", "%", ">", "!", "`", "&", "*", "'", "|", "{", "?", "=", "}", "/", ":", " ", "@"]

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 24 remaining solutions by signing in and submitting your own entry
#25 Oct 29th / O29th - Score: 48 - 09/28/16 @ 21:41
:%s/\s*[a-z]*\n*//g<CR>$i <Esc>:%s/./"\0", /g<CR>i[<Esc>$xr]ZZ

0 comments

#26 Sandeep Dhavale / sandeep_dhavale - Score: 49 - 07/29/16 @ 06:09
6J:%s/[a-z <Tab>]//g<CR>qqi"<Right>", <Right><Esc>q18@qI[<C-O>A<BS><BS>]<C-O>B" ", <Esc>ZZ

0 comments

#27 Benjamin Espey / bennyty - Score: 50 - 07/25/16 @ 17:20
:%s/\w\|\s//g<CR>H6gJi <Esc>I[<Esc>lqqs""<Esc>Pla, <Esc>lq19@qA<BS><BS>]<Esc>ZZ

0 comments

#28 OumpaLoumpa / OLoumpa - Score: 50 - 07/26/16 @ 16:23
:%s/\w\|\s//g<CR>H6gJi <Esc>I[<Esc>lqqs""<Esc>Pla, <Esc>lq19@qA<BS><BS>]<Esc>ZZ

0 comments

#29 isaneba / isaneba - Score: 51 - 08/04/16 @ 06:21
6Di#<$+%>!`&*'|{?=}/: @<Esc>0i["<Esc>lqqa", "<Esc>lq30@qhhC]<Esc>ZZ

0 comments

#30 Larry Boltovskoi / larrybolt - Score: 55 - 07/25/16 @ 21:43
6J:%s/\a\|\t\|\s//g<CR>i[<Esc>lqqi"<Right>", <Esc>lq99@qA<BS><BS>]<Left><Left><Left><Left>" ", <Esc>ZZ

0 comments

Created by: bennyty

30 active golfers, 90 entries

Leaderboard (lowest score wins):
33
#1 - Urtica dioica / udioica

07/25/2016 at 07:49PM

33
#2 - John Braxler / braxler

07/25/2016 at 09:15PM

33
#3 - Roberto Carraretto / robcarraretto

07/26/2016 at 01:40AM

33
#4 - Smylers / Smylers2

07/26/2016 at 01:45PM

33
#5 - Jon Krause / jkrause314

07/28/2016 at 09:25PM

33
#6 - Petro Тrouq / zulolosi

08/04/2016 at 07:28PM

33
#7 - Saki Gw / Sakigw

08/04/2016 at 09:12PM

33
#8 - Herbert S. / herbertshlong

08/04/2016 at 09:36PM

33
#9 - jdupont655 / jdupont655

09/02/2016 at 11:32AM

33
#10 - Stephen Aument / saument

09/03/2016 at 06:42PM

33
#11 - trx / trxdbg

10/24/2016 at 07:27AM

33
#12 - Jon Louie / jjisnow

11/23/2016 at 12:17PM

37
#13 - tPenguinLTG / tpenguinltg

07/25/2016 at 06:26PM

37
#14 - Pavlo Klets / p01nt

07/25/2016 at 06:41PM

38
#15 - jaresty / jaresty

08/05/2016 at 10:56PM

40
#16 - TweetDreams / TweetMusicians

10/12/2016 at 03:28AM

41
#17 - Walker Boh / walker_boh

07/25/2016 at 05:31PM

41
#18 - Richard O'Brien / richard0b

07/28/2016 at 04:22AM

41
#19 - Vaughn Cato / vaughncato

08/07/2016 at 06:49PM

41
#20 - Bill Ruddock / biinari

10/26/2016 at 03:44AM

41
#21 - Daniel / Daniel00288663

03/31/2017 at 09:08AM

42
#22 - Meninx / _Meninx_

07/30/2016 at 02:57PM

42
#23 - Etienne Florent / EtienneFlorent

11/29/2016 at 12:32PM

45
#24 - Weeble / weeble

07/26/2016 at 04:21PM

48
#25 - Oct 29th / O29th

09/28/2016 at 09:41PM

49
#26 - Sandeep Dhavale / sandeep_dhavale

07/29/2016 at 06:09AM

50
#27 - Benjamin Espey / bennyty

07/25/2016 at 05:20PM

50
#28 - OumpaLoumpa / OLoumpa

07/26/2016 at 04:23PM

51
#29 - isaneba / isaneba

08/04/2016 at 06:21AM

55
#30 - Larry Boltovskoi / larrybolt

07/25/2016 at 09:43PM