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 55faae943e9b67549b000001

Sudoku table

Make this simple sudoku table look nice and legible.

Start file
536917284
287543691
419286357
621798435
358124976
974635812
142879563
863451729
795362148
End file
   - - -   - - -   - - -
 
| 5 3 6 | 9 1 7 | 2 8 4 |
 
| 2 8 7 | 5 4 3 | 6 9 1 |
 
| 4 1 9 | 2 8 6 | 3 5 7 |
   
- - -   - - -   - - -
 
| 6 2 1 | 7 9 8 | 4 3 5 |
 
| 3 5 8 | 1 2 4 | 9 7 6 |
 
| 9 7 4 | 6 3 5 | 8 1 2 |
   
- - -   - - -   - - -
 
| 1 4 2 | 8 7 9 | 5 6 3 |
 
| 8 6 3 | 4 5 1 | 7 2 9 |
 
| 7 9 5 | 3 6 2 | 1 4 8 |
   
- - -   - - -   - - -  

View Diff

diff --git a/input.file b/output.file
index
5811fdc..6e176f0 100644
--- a/input.file
+++ b/output.file
@@ -1,9 +1,13 @@
-536917284
-287543691
-419286357
-621798435
-358124976
-974635812
-142879563
-863451729
-795362148
+   - - -   - - -   - - -
+ | 5 3 6 | 9 1 7 | 2 8 4 |
+ | 2 8 7 | 5 4 3 | 6 9 1 |
+ | 4 1 9 | 2 8 6 | 3 5 7 |
+   - - -   - - -   - - -
+ | 6 2 1 | 7 9 8 | 4 3 5 |
+ | 3 5 8 | 1 2 4 | 9 7 6 |
+ | 9 7 4 | 6 3 5 | 8 1 2 |
+   - - -   - - -   - - -
+ | 1 4 2 | 8 7 9 | 5 6 3 |
+ | 8 6 3 | 4 5 1 | 7 2 9 |
+ | 7 9 5 | 3 6 2 | 1 4 8 |
+   - - -   - - -   - - -  

Solutions by @nickandbro:

Unlock 19 remaining solutions by signing in and submitting your own entry
Created by: @alimoeeny

34 active golfers, 92 entries

Solutions by @nickandbro:
48
#6 - nickGPT / @nickandbro

08/28/2024 at 03:53AM

49
#>9 - nickGPT / @nickandbro

08/28/2024 at 03:53AM

50
#>11 - nickGPT / @nickandbro

08/28/2024 at 03:53AM

51
#>13 - nickGPT / @nickandbro

08/28/2024 at 03:53AM

53
#>15 - nickGPT / @nickandbro

08/28/2024 at 03:52AM

54
#>16 - nickGPT / @nickandbro

08/28/2024 at 03:52AM

59
#>18 - nickGPT / @nickandbro

08/28/2024 at 03:52AM

61
#>20 - nickGPT / @nickandbro

08/28/2024 at 03:52AM

62
#>21 - nickGPT / @nickandbro

08/28/2024 at 03:52AM

64
#>23 - nickGPT / @nickandbro

08/28/2024 at 03:52AM

66
#>24 - nickGPT / @nickandbro

08/28/2024 at 03:52AM

67
#>25 - nickGPT / @nickandbro

08/28/2024 at 03:52AM

68
#>28 - nickGPT / @nickandbro

08/28/2024 at 03:52AM

71
#>29 - nickGPT / @nickandbro

08/28/2024 at 03:52AM

72
#>30 - nickGPT / @nickandbro

08/28/2024 at 03:52AM

84
#>31 - nickGPT / @nickandbro

08/28/2024 at 03:51AM

86
#>32 - nickGPT / @nickandbro

08/28/2024 at 03:51AM

88
#>33 - nickGPT / @nickandbro

08/28/2024 at 03:51AM

92
#>34 - nickGPT / @nickandbro

08/28/2024 at 03:51AM