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 17 remaining solutions by signing in and submitting your own entry
#18 たかっぷ / takapp - Score: 68 - 09/19/15 @ 07:41
qai | <Right> <Right> <Right> | <Right> <Right> <Right> | <Right> <Right> <Right> |<Esc>+q8@aggO<Esc>3a   - - -<Esc>Yjjjp3jp3jp$a  <Esc>ZZ

0 comments

#19 Walker Boh / walker_boh - Score: 68 - 10/01/15 @ 08:42
:%s/.../|&/g<CR>ggO<Esc>A ---<Esc>..:%s/./ &/g<CR><C-Q>2G$A |<Esc>k$:1t4<CR>:<Up><BS>8<CR>:<Up><BS>12<CR>A  <Esc>ZZ

0 comments

#20 David Willming / wdialvmeo - Score: 71 - 09/18/15 @ 01:10
<C-V>GI|<Esc>3l<C-V>GA|<Esc>7l<C-V>GA|<Esc><C-V>G$A|<Esc>O 0<BS>--- --- ---<Esc>yy4jP4jP3jpA<Esc>:%s/./ &/g<CR>A  <Esc>ZZ

0 comments

#21 aisapatino / aisapatino - Score: 86 - 09/23/15 @ 23:28
:%s/\v(\d)(\d)(\d)/\ |\ \1\ \2\ \3/g<CR>$<C-V>ggA |<Esc>O  - - -   - - -   - - -<Esc>4j.4j.yyGpA  <Esc>ZZ

0 comments

#22 Ali Moeeny / 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

22 active golfers, 50 entries

Leaderboard (lowest score wins):
48
#1 - John Braxler / braxler

09/18/2015 at 07:40PM

48
#2 - Thomas Draper / QuanTom561

09/26/2015 at 03:39AM

48
#3 - Damien J / TL343

10/24/2015 at 04:03AM

49
#4 - Lifepillar / lifepillar

09/17/2015 at 09:15PM

49
#5 - PL / petrlaitoch

09/17/2015 at 09:39PM

50
#6 - Smylers / Smylers2

09/18/2015 at 01:03PM

51
#7 - Mark Brody / _markbrody

10/15/2015 at 03:27PM

51
#8 - Árpád Krejczinger / krarpi

11/11/2015 at 04:55PM

53
#9 - Mikael Saltzman / MikaelSaltzman

09/23/2015 at 04:47PM

59
#10 - Gerald Tilma / GeraldTilma

10/18/2015 at 09:03PM

59
#11 - Dheeraj Sayala / dheerosaur

11/06/2016 at 01:51PM

61
#12 - Bogumił Kamiński / BogumilKaminski

10/26/2015 at 11:32PM

62
#13 - Tamas Gal / tamasgal

09/26/2015 at 11:32AM

64
#14 - Pete Sevander / Sevanteri

09/18/2015 at 05:07PM

64
#15 - JD / Deznormal

09/28/2015 at 08:38PM

67
#16 - Ala' Ibrahim / alaa_ibrahim

09/18/2015 at 05:38AM

68
#17 - Sean Hill / insecteanSean

09/19/2015 at 12:28AM

68
#18 - たかっぷ / takapp

09/19/2015 at 07:41AM

68
#19 - Walker Boh / walker_boh

10/01/2015 at 08:42AM

71
#20 - David Willming / wdialvmeo

09/18/2015 at 01:10AM

86
#21 - aisapatino / aisapatino

09/23/2015 at 11:28PM

92
#22 - Ali Moeeny / alimoeeny

09/19/2015 at 10:54AM