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

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 33 remaining solutions by signing in and submitting your own entry
#34 Ali Moeeny MD PhD / @alimoeeny - Score: 92 - 09/19/15 @ 10:54
qq0i | <Right> <Right> <Right> | <Right> <Right> <Right> | <Right> <Right> <Right> |<Esc>jq8@qo  - - -   - - -   - - -  <Esc>Y3kP3kP3kPA<BS><BS><Esc>3jjA<BS><BS><Esc>4jA<BS><BS><Esc>ZZ

0 comments


Created by: @alimoeeny

34 active golfers, 92 entries

Leaderboard (lowest score wins):
84
#31 - Erick Gonzalez / @eygl_erick

06/10/2023 at 03:25PM

86
#32 - aisapatino / @aisapatino

09/23/2015 at 11:28PM

88
#33 - Iain Bromley / @iainbromley

09/08/2019 at 10:25PM

92
#34 - Ali Moeeny MD PhD / @alimoeeny

09/19/2015 at 10:54AM