Ⅰ. 插件描述
Plugin for solving Sudoku puzzlesⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/sudoku-solver'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/sudoku-solver'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/sudoku-solver'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/Sudoku-Solver
Ⅳ. 文档说明
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