/vim-game-snake-god-mode

Vim Game : Snake

Primary LanguageVim ScriptMIT LicenseMIT

VimGameSnake

version 0.2

animated demonstration

How to play

:VimGameSnake to Start :echo g:VimSnakeScore to view score

h j k l c q
end game quit

How to configure

Change the game difficulty

let g:VimSnakeMode = 'hard' " easy|hard|godmode - default: hard

Change the gameover policy

  • always - restart the game after sneyk died
  • none - stop the game
let g:VimSnakeRestart = 'always' " always|none - default: always

Installation

VimPlug

Place this in your .vimrc:

Plug 'joshuatonga/vim-game-snake-hard-mode'

Then run the following in Vim:

:source %

:PlugInstall