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 46 remaining solutions by signing in and submitting your own entry
#47 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

47 active golfers, 138 entries

Leaderboard (lowest score wins):
72
#31 - Carlos A Henríquez Q / @lagunex

01/19/2015 at 11:13AM

73
#32 - くま ก็็็็็็็็็็็็็ʕ•͡ᴥ•ʔ ก้้้้้้้้้้้ 55 / @kumack55

05/23/2013 at 12:21AM

73
#33 - Vincent Lee / @vincentleest

07/04/2013 at 06:29AM

74
#34 - JVIM / @JVIM101

03/07/2022 at 04:07PM

75
#35 - Oliver Christ / @0liverChrist

10/04/2013 at 02:45PM

75
#36 - David Tabachnikov / @davidtab

09/30/2014 at 02:13PM

75
#37 - Tuure / @tuure_p

05/17/2021 at 06:02PM

76
#38 - Fl4t / @Fl4t

05/27/2013 at 09:54PM

76
#39 - )ouni|(antola / @jouni_kantola

01/28/2015 at 10:38PM

77
#40 - Spencer Rogers / @spencer1248

05/25/2013 at 01:48AM

77
#41 - Ker / @alin_ker

06/12/2013 at 02:37PM

77
#42 - Michael LeCompte / @michaelslec

08/12/2013 at 12:56AM

82
#43 - Zach Kemp / @zvksf

12/13/2013 at 11:56PM

93
#44 - mindgitrwx / @mindgitrwx

08/06/2020 at 01:36PM

106
#45 - Robert Goeddel / @f0rdpr3fect

11/12/2015 at 07:17PM

108
#46 - Richard John Soni / @richsoni

05/24/2013 at 06:12PM

747
#47 - Julien Pivotto / @roidelapluie

05/22/2013 at 12:49PM