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 519cb48135fc71000200004a

Draw the Go board

which is a 19×19 lines board. Here we use ascii characters only for simplicity. See diff file to get a sense. (See also http://en.wikipedia.org/wiki/Go_(game))

Start file

End file
W t t t t t t t t t t t t t t t t t X 
l . . . . . . . . . . . . . . . . . r 
l . . . . . . . . . . . . . . . . . r 
l . . + . . . . . + . . . . . + . . r 
l . . . . . . . . . . . . . . . . . r 
l . . . . . . . . . . . . . . . . . r 
l . . . . . . . . . . . . . . . . . r 
l . . . . . . . . . . . . . . . . . r 
l . . . . . . . . . . . . . . . . . r 
l . . + . . . . . + . . . . . + . . r 
l . . . . . . . . . . . . . . . . . r 
l . . . . . . . . . . . . . . . . . r 
l . . . . . . . . . . . . . . . . . r 
l . . . . . . . . . . . . . . . . . r 
l . . . . . . . . . . . . . . . . . r 
l . . + . . . . . + . . . . . + . . r 
l . . . . . . . . . . . . . . . . . r 
l . . . . . . . . . . . . . . . . . r 
Y b b b b b b b b b b b b b b b b b Z 

View Diff

    A B C D E F G H I J K L M N O P Q R S
 1 ┏ ┯ ┯ ┯ ┯ ┯ ┯ ┯ ┯ ┯ ┯ ┯ ┯ ┯ ┯ ┯ ┯ ┯ ┓ 
 2 ┠ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┨ 
 3 ┠ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┨ 
 4 ┠ ┼ ┼ ╋ ┼ ┼ ┼ ┼ ┼ ╋ ┼ ┼ ┼ ┼ ┼ ╋ ┼ ┼ ┨ 
 5 ┠ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┨ 
 6 ┠ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┨ 
 7 ┠ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┨ 
 8 ┠ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┨ 
 9 ┠ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┨ 
10 ┠ ┼ ┼ ╋ ┼ ┼ ┼ ┼ ┼ ╋ ┼ ┼ ┼ ┼ ┼ ╋ ┼ ┼ ┨ 
11 ┠ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┨ 
12 ┠ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┨ 
13 ┠ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┨ 
14 ┠ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┨ 
15 ┠ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┨ 
16 ┠ ┼ ┼ ╋ ┼ ┼ ┼ ┼ ┼ ╋ ┼ ┼ ┼ ┼ ┼ ╋ ┼ ┼ ┨ 
17 ┠ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┨ 
18 ┠ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┼ ┨ 
19 ┗ ┷ ┷ ┷ ┷ ┷ ┷ ┷ ┷ ┷ ┷ ┷ ┷ ┷ ┷ ┷ ┷ ┷ ┛ 

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 50 remaining solutions by signing in and submitting your own entry
#51 Julien Pivotto / @roidelapluie - Score: 747 - 05/22/13 @ 12:49
iW t t t t t t t t t t t t t t t t t X <CR>l . . . . . . . . . . . . . . . . . r <CR>l . . . . . . . . . . . . . . . . . r <CR>l . . + . . . . . + . . . . . + . . r <CR>l . . . . . . . . . . . . . . . . . r <CR>l . . . . . . . . . . . . . . . . . r <CR>l . . . . . . . . . . . . . . . . . r <CR>l . . . . . . . . . . . . . . . . . r <CR>l . . . . . . . . . . . . . . . . . r <CR>l . . + . . . . . + . . . . . + . . r <CR>l . . . . . . . . . . . . . . . . . r <CR>l . . . . . . . . . . . . . . . . . r <CR>l . . . . . . . . . . . . . . . . . r <CR>l . . . . . . . . . . . . . . . . . r <CR>l . . . . . . . . . . . . . . . . . r <CR>l . . + . . . . . + . . . . . + . . r <CR>l . . . . . . . . . . . . . . . . . r <CR>l . . . . . . . . . . . . . . . . . r <CR>Y b b b b b b b b b b b b b b b b b Z <Esc>:w<CR>ZZ

0 comments


Created by: @zhwenyuan

51 active golfers, 149 entries

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

05/22/2013 at 04:25PM

50
#2 - Roland Schatz / @fl_Overmind

07/12/2013 at 05:51PM

50
#3 - John Braxler / @braxler

05/22/2014 at 03:09PM

50
#4 - Peppa Pig / @PeppaPigSg

07/03/2024 at 05:51AM

51
#5 - Andy Balaam / @andybalaam

06/11/2013 at 01:45PM

51
#6 - ———đίxίє—flαтlίиє——— / @_dixie_flatline

07/19/2013 at 04:01AM

55
#7 - Andreas Siegrist / @andreaszwei

02/02/2022 at 10:00AM

56
#8 - Kai Yuan / @kentyuan

05/22/2013 at 04:09PM

56
#9 - Bradd Szonye / @bszonye

07/11/2013 at 12:34PM

56
#10 - Pedro Santos / @pedrosans

03/27/2014 at 08:09PM

56
#11 - Miłosz Łakomy / @foobar01123

10/23/2020 at 03:45PM

57
#12 - Petro Тrouq / @zulolosi

05/22/2013 at 11:51PM

59
#13 - powertomato / @powertomato

07/12/2013 at 12:48PM

60
#14 - Steve Tjoa / @stevetjoa

07/12/2013 at 06:46PM

61
#15 - Aaron Bieber / @aaronbieber

06/02/2013 at 05:32PM

63
#16 - RobertT / @techrt2050

10/02/2013 at 01:20AM

64
#17 - Marco Hinz / @_mhinz_

05/22/2013 at 02:14PM

65
#18 - Nathan / @NathanHarperoni

05/31/2013 at 06:58PM

67
#19 - cj / @cj01101

08/08/2013 at 11:27AM

67
#20 - vimgolfer / @vimgolfer7

10/12/2019 at 03:14AM

68
#21 - Bruno Pedro / @bpedro

05/22/2013 at 02:56PM

68
#22 - Vinicius Souza / @vsouzas

05/30/2013 at 05:26PM

68
#23 - Jim / @BLSJim

06/09/2013 at 11:53AM

68
#24 - Justin / @justinjaffray

07/05/2013 at 12:53PM

68
#25 - Joonas Pihlajamaa / @jokkebk

03/18/2014 at 10:55AM

68
#26 - Paul Kunysch / @kunysch

07/18/2014 at 08:17PM

68
#27 - floyd / @floyd10086

04/13/2020 at 09:47AM

69
#28 - 𝚃𝚒𝚝𝚘𝚞𝚊𝚗 𝚃𝚎𝚢𝚜𝚜𝚒𝚎𝚛 / @TitouanT_

03/10/2019 at 06:15PM

70
#29 - Kevin Lou / @klou23

07/27/2024 at 02:49AM

72
#30 - zealotrush / @zealotrush

05/22/2013 at 02:09PM