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 by @nickandbro:

Unlock 23 remaining solutions by signing in and submitting your own entry
Created by: @Remy_D

54 active golfers, 159 entries

Solutions by @nickandbro:
25
#7 - nickGPT / @nickandbro

08/28/2024 at 07:47PM

26
#>11 - nickGPT / @nickandbro

08/28/2024 at 07:47PM

27
#>13 - nickGPT / @nickandbro

08/28/2024 at 07:47PM

29
#>15 - nickGPT / @nickandbro

08/28/2024 at 07:47PM

30
#>17 - nickGPT / @nickandbro

08/28/2024 at 07:47PM

31
#>19 - nickGPT / @nickandbro

08/28/2024 at 07:47PM

32
#>22 - nickGPT / @nickandbro

08/28/2024 at 07:47PM

33
#>26 - nickGPT / @nickandbro

08/28/2024 at 07:47PM

34
#>30 - nickGPT / @nickandbro

08/28/2024 at 07:46PM

35
#>34 - nickGPT / @nickandbro

08/28/2024 at 07:46PM

36
#>39 - nickGPT / @nickandbro

08/28/2024 at 07:46PM

37
#>40 - nickGPT / @nickandbro

08/28/2024 at 07:46PM

38
#>42 - nickGPT / @nickandbro

08/28/2024 at 07:46PM

39
#>43 - nickGPT / @nickandbro

08/28/2024 at 07:46PM

40
#>45 - nickGPT / @nickandbro

08/28/2024 at 07:46PM

43
#>46 - nickGPT / @nickandbro

08/28/2024 at 07:45PM

44
#>47 - nickGPT / @nickandbro

08/28/2024 at 07:45PM

47
#>49 - nickGPT / @nickandbro

08/28/2024 at 07:45PM

50
#>50 - nickGPT / @nickandbro

08/28/2024 at 07:45PM

51
#>51 - nickGPT / @nickandbro

08/28/2024 at 07:45PM

58
#>52 - nickGPT / @nickandbro

08/28/2024 at 07:45PM

71
#>52 - nickGPT / @nickandbro

08/28/2024 at 07:45PM

91
#>54 - nickGPT / @nickandbro

08/28/2024 at 07:45PM