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):
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

48
#4 - Berel94 / @Berel94

03/12/2024 at 10:34PM

48
#5 - Peppa Pig / @PeppaPi95550250

06/29/2024 at 06:55AM

48
#6 - nickGPT / @nickandbro

08/28/2024 at 03:53AM

49
#7 - Lifepillar / @lifepillar

09/17/2015 at 09:15PM

49
#8 - PL / @petrlaitoch

09/17/2015 at 09:39PM

49
#9 - Tim White / @antichrist65535

01/30/2019 at 01:30PM

50
#10 - Smylers / @Smylers2

09/18/2015 at 01:03PM

50
#11 - vimRunnerUp3000 / @VUp3000

01/24/2020 at 02:26PM

51
#12 - Mark Brody / @_markbrody

10/15/2015 at 03:27PM

51
#13 - Árpád Krejczinger / @krarpi

11/11/2015 at 04:55PM

53
#14 - Mikael Saltzman / @MikaelSaltzman

09/23/2015 at 04:47PM

53
#15 - Doug White / @POOGLIES1

01/30/2019 at 10:33AM

54
#16 - RosaTryp / @RosaTryp

06/09/2023 at 12:21PM

59
#17 - Gerald Tilma / @GeraldTilma

10/18/2015 at 09:03PM

59
#18 - Dheeraj Sayala / @dheerosaur

11/06/2016 at 01:51PM

61
#19 - Bogumił Kamiński / @BogumilKaminski

10/26/2015 at 11:32PM

61
#20 - jonas-grobe / @jonas-grobe

02/04/2024 at 12:30PM

62
#21 - Tamas Gal (Tom) / @tamasgal

09/26/2015 at 11:32AM

64
#22 - Pete Sevander / @Sevanteri

09/18/2015 at 05:07PM

64
#23 - Douglas Perrin / @Deznormal

09/28/2015 at 08:38PM

66
#24 - RockerZZY / @rocker_zzy

05/31/2020 at 02:30PM

67
#25 - Ala' Ibrahim / @alaa_ibrahim

09/18/2015 at 05:38AM

68
#26 - Sean Hill / @insecteanSean

09/19/2015 at 12:28AM

68
#27 - たかっぷ / @takapp

09/19/2015 at 07:41AM

68
#28 - Walker Boh / @walker_boh

10/01/2015 at 08:42AM

71
#29 - David Willming / @wdialvmeo

09/18/2015 at 01:10AM

72
#30 - constap / @constap

05/09/2024 at 11:10PM