mine sweeping game in vim and neovim
" vim-plug
Plug 'iqxd/vim-mine-sweeping'-- packer
use 'iqxd/vim-mine-sweeping'- Launch
Vim Mine Sweepingwith command:MineSweep - Press h, j, k, l or
arrow keyto move between cells - Press c or
double left-click mouseto reveal a cell, - Press f or
right-click mouseto toggle flag on a cell - Press n g to start a new game
- Press p b to print all mines and numbers in board
- Press ? to toggle help
- Press Z Z to exit current game
Command :MineSweep can be called with following arugments:
:MineSweepeasy | medium | hard | row col-e | -n | -v | -t
easy9 x 9 boardmedium16 x 16 boardhard24 x 24 boardrow coluser defined row x col board-ecreate board in current window-ncreate board in new split window-vcreate board in new vsplit window-tcreate board in new tabpage-fcreate board in new floating window (neovim only)
The default :MineSweep are equal to command with arguments like:
:MineSweep12 20-v
which create game with 12 x 20 board in a new vsplit window
You can also map the command in vimrc like below
nnoremap <F12> :MineSweep medium -t<cr>Enjoy! :)


