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 @alaa_ibrahim:

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

27 active golfers, 58 entries

Solutions by @alaa_ibrahim:
67
#20 - Ala' Ibrahim / @alaa_ibrahim

09/18/2015 at 05:38AM