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):
41
#31 - Daniel / @Daniel00288663

03/31/2017 at 09:08AM

42
#32 - Meninx / @_Meninx_

07/30/2016 at 02:57PM

42
#33 - Etienne Florent / @EtienneFlorent

11/29/2016 at 12:32PM

42
#34 - RockerZZY / @rocker_zzy

06/15/2020 at 04:22PM

43
#35 - jonas-grobe / @jonas-grobe

02/03/2024 at 10:37PM

45
#36 - Weeble / @weeble

07/26/2016 at 04:21PM

48
#37 - Oct 29th / @O29th

09/28/2016 at 09:41PM

48
#38 - Gurukandhamoorthi / @Gurukandhamoor1

07/22/2017 at 04:28PM

49
#39 - Sandeep Dhavale / @sandeep_dhavale

07/29/2016 at 06:09AM

50
#40 - Benjamin Espey / @bennyty

07/25/2016 at 05:20PM

50
#41 - OumpaLoumpa / @OLoumpa

07/26/2016 at 04:23PM

51
#42 - isaneba / @isaneba

08/04/2016 at 06:21AM

52
#43 - Selvaganapathy P / @canabady

02/22/2021 at 01:37PM

55
#44 - Larry Boltovskoi / @larrybolt

07/25/2016 at 09:43PM

57
#45 - Clay Thomas / @CHThomas95

08/09/2017 at 08:14PM

57
#46 - e.cousinet / @ecousinet

07/17/2024 at 09:21AM

89
#47 - 小世界 / @walilav

10/13/2023 at 04:29AM