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 5054b935fa0b390002000020

SFD-ROC: Tic-Tac-Toe

Tic-Tac-Toe You are 'X', and it is your turn. Stop 'O' from winning, and complete the game. Draw a diagonal line through your winning row of three X's.

Start file
Tic-Tac-Toe
You are 'X', and it is your turn. Stop 'O' from winning, and complete the game.

        |   |
      X | O |
        |   |
     -----------
        |   |
        |   |
        |   |
     -----------
        |   |
        | O | X
        |   |


Bonus: Draw a diagonal line through your winning row of three X's.
End file
Tic-Tac-Toe
You are 'X', and it is your turn. Stop 'O' from winning, and complete the game.

     \  |   |
      X | O |
       \|   |
     -----------
        |\  |
        | X |
        |  \|
     -----------
        |   |\
        | O | X
        |   |  \


Bonus: Draw a diagonal line through your winning row of three X's.

View Diff

4c4
<         |   |
---
>      \  |   |
6c6
<         |   |
---
>        \|   |
8,10c8,10
<         |   |
<         |   |
<         |   |
---
>         |\  |
>         | X |
>         |  \|
12c12
<         |   |
---
>         |   |\
14c14
<         |   |
---
>         |   |  \

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 53 remaining solutions by signing in and submitting your own entry
#54 Trever Marshall / @dynamic_library - Score: 91 - 10/12/12 @ 10:49
8<Down>9<Right><Right>a\<BS><BS>x <BS><BS>X<Up><Up><Up><Left><Left><Left><Left><Esc><Up><Up><Left>a<Left>\<Right><Right><Right><BS><Down><Down><Left>-<BS>/<BS>\<Right><BS><Down><Down><Right>\<BS>\<Right><Esc>Oq<BS><BS><BS><Up><Up><Down><Down><Down><Left><BS><Up><Down><Down><Down><Left>\<Right><BS><Down><Down><Right>\<Down><Down><Right>  \<Esc>"::;<BS>w<CR>:q<CR>

0 comments


Created by: @Remy_D

54 active golfers, 159 entries

Leaderboard (lowest score wins):
25
#1 - Kerson Hsiao / @KersonHsiao

09/16/2012 at 10:18AM

25
#2 - Conner McDaniel / @connermcd

09/16/2012 at 07:08PM

25
#3 - Victor Ramirez / @virako

10/01/2012 at 12:45AM

25
#4 - Rahul Krishnan / @rahulkrish

11/04/2012 at 04:04PM

25
#5 - Petro Тrouq / @zulolosi

06/08/2013 at 09:30AM

25
#6 - Peppa Pig / @PeppaPi95550250

07/03/2024 at 06:46AM

25
#7 - nickGPT / @nickandbro

08/28/2024 at 07:47PM

26
#8 - Urtica dioica / @udioica

12/13/2012 at 02:10AM

26
#9 - John Braxler / @braxler

07/11/2014 at 09:26PM

26
#10 - Jon Krause / @jkrause314

01/15/2016 at 08:36AM

26
#11 - Chester Yap / @Chest_ErYap

08/11/2019 at 02:19AM

27
#12 - Justin Love / @wondible

09/17/2012 at 02:08AM

27
#13 - hiding / @I_haveno_name

10/02/2013 at 09:21PM

29
#14 - Édouard M'tou / @DouardM

10/22/2012 at 07:17PM

29
#15 - mix irving / @whimful

10/31/2012 at 10:17AM

30
#16 - Jer Wilson / @superjercom

09/28/2012 at 06:34PM

30
#17 - Dan Goldstein / @dggoldst

10/14/2012 at 03:10AM

31
#18 - tmr / @tmr314

09/16/2012 at 12:18PM

31
#19 - Arton0306 / @Arton0306

11/21/2012 at 02:18PM

32
#20 - Marcin Szamotulski / @me_coot

09/18/2012 at 03:01PM

32
#21 - Joonas Pihlajamaa / @jokkebk

03/15/2014 at 04:11PM

32
#22 - Lifepillar / @lifepillar

09/30/2015 at 04:43PM

33
#23 - h_east (トロッコ6個) / @h_east

09/15/2012 at 05:36PM

33
#24 - Tim Chase / @gumnos

09/15/2012 at 06:15PM

33
#25 - Hubba / @HubbaBubbaFett

11/12/2012 at 10:30AM

33
#26 - cj / @cj01101

10/22/2013 at 05:42PM

34
#27 - Federico Bond / @federicobond

09/22/2012 at 11:24PM

34
#28 - crater / @crater2150

10/25/2012 at 01:04PM

34
#29 - ♜ Pepe Doval / @pepellou

10/26/2012 at 07:16PM

34
#30 - pankaj singh / @pankajsingh013

01/15/2019 at 05:32PM