mine sweeping game in vim and neovim
" vim-plug
Plug 'iqxd/vim-mine-sweeping'
- Launch
Vim Mine Sweeping
with command:MineSweep
- Press h, j, k, l to move between cells
- Press c to reveal a cell, f to add flag on a cell
- Press n g to start a new game, ? to toggle help
Command :MineSweep
can be called with following arugments:
:MineSweep
easy | medium | hard | row col
-e | -n | -v | -t
easy
9 x 9 boardmedium
16 x 16 boardhard
24 x 24 boardrow col
user defined row x col board-e
create board in current window-n
create board in new split window-v
create board in new vsplit window-t
create board in new tabpage
The default :MineSweep
are equal to command with arguments like:
:MineSweep
12 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! :)