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 38 remaining solutions by signing in and submitting your own entry
#39 Clay Thomas / @CHThomas95 - Score: 57 - 08/09/17 @ 20:14
:%s/\w\+//g<CR>ggJJJJJblas<Esc>:s/\s\+/", "/g<CR>i"<BS>["<Esc>A<BS><BS><BS>]<Esc>Fsr ZZ

0 comments


Created by: @bennyty

39 active golfers, 132 entries

Leaderboard (lowest score wins):
45
#31 - Weeble / @weeble

07/26/2016 at 04:21PM

48
#32 - Oct 29th / @O29th

09/28/2016 at 09:41PM

48
#33 - Gurukandhamoorthi / @Gurukandhamoor1

07/22/2017 at 04:28PM

49
#34 - Sandeep Dhavale / @sandeep_dhavale

07/29/2016 at 06:09AM

50
#35 - Benjamin Espey / @bennyty

07/25/2016 at 05:20PM

50
#36 - OumpaLoumpa / @OLoumpa

07/26/2016 at 04:23PM

51
#37 - isaneba / @isaneba

08/04/2016 at 06:21AM

55
#38 - Larry Boltovskoi / @larrybolt

07/25/2016 at 09:43PM

57
#39 - Clay Thomas / @CHThomas95

08/09/2017 at 08:14PM