sponsor Vim development Vim logo Vim Book Ad

Sudoku Solver : Plugin for solving Sudoku puzzles

 script karma  Rating 25/10, Downloaded by 1448    Comments, bugs, improvements  Vim wiki

created by
Po Shan Cheah
script type
Sudoku solver plugin

Important: Vim 7.0 or later required.

Sudoku is a puzzle where you have to fill all the blank spaces with digits from 1 to 9 such that no row, column, or 3x3 block of cells have any digits repeated. This plugin holds a Vim script that solves Sudoku puzzles by exhaustive search.

Enter the puzzle into a buffer like this:

    8xx 69x xx2
    91x xxx xxx
    5xx xx8 xx7

    xxx 2x9 xx6
    xxx 8xx xx3
    2xx 3x4 xxx

    3xx 78x xx9
    xxx xxx xx5
    4xx x5x x28

The numbers represent supplied digits 1 to 9 in the puzzle. Use any other character to represent blank spaces.

Then visually select the puzzle and invoke the macro binding ,s
install details
Drop it into the plugin directory.
Note: Vim 7.0 or later required.

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
sudoku.vim 1.1 2008-05-16 7.0 Po Shan Cheah Modified script to display results in a new window split. Improved the status and error messages. Added some checking for obvious problems in the puzzle.
sudoku.vim 1.0 2006-03-13 7.0 Po Shan Cheah Initial upload
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
SourceForge.net Logo