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 46 remaining solutions by signing in and submitting your own entry
#47 小世界 / @walilav - Score: 89 - 10/13/23 @ 04:29
:%s/\w//g<CR>qqs"<Esc>pa",<Esc>bbq18@q:%s/[\t ]//g<CR>qqi<BS><Esc>^q4@qi[<Esc>f@i ","<Esc>$r]":<Esc>:5s<BS><BS>%s/",/", /g<CR>:<Esc><Esc>ZZ

0 comments


Created by: @bennyty

47 active golfers, 175 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

33
#13 - Turkey Man / @lvturkeyman

11/26/2017 at 10:45AM

33
#14 - Rodrigo Munoz / @pixelfuture

12/13/2017 at 06:42AM

33
#15 - DHM / @DHM29978992

05/20/2018 at 02:06AM

33
#16 - Sam O'Malley / @Samuel_OMalley

10/11/2019 at 05:02PM

33
#17 - scpchicken / @scpchick

10/19/2023 at 07:10PM

33
#18 - Peppa Pig / @PeppaPigSg

07/02/2024 at 10:07PM

33
#19 - nickGPT / @nickandbro

08/28/2024 at 03:11AM

34
#20 - Jean George / @JeanGeo20504212

05/30/2022 at 05:19PM

36
#21 - Mihai / @mihaicristiant

04/01/2019 at 09:42AM

36
#22 - Lory / @Lory46845742

01/31/2020 at 07:35AM

37
#23 - tPenguinLTG / @tpenguinltg

07/25/2016 at 06:26PM

37
#24 - Pavlo Klets / @p01nt

07/25/2016 at 06:41PM

38
#25 - jaresty / @jaresty

08/05/2016 at 10:56PM

40
#26 - TweetDreams / @TweetMusicians

10/12/2016 at 03:28AM

41
#27 - Walker Boh / @walker_boh

07/25/2016 at 05:31PM

41
#28 - Richard O'Brien / @richard0b

07/28/2016 at 04:22AM

41
#29 - Vaughn Cato / @vaughncato

08/07/2016 at 06:49PM

41
#30 - Bill Ruddock / @biinari

10/26/2016 at 03:44AM