Game Of Life - inside Vim
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
autoload
plugin
samples
.gitignore
LICENSE
README.md

README.md

vim-life

Simple Game of Life within vim

See example on Asccinema:

Requirements

vim, +python

Installation

Using pathogen.

git clone https://github.com/omaraboumrad/vim-life.git ~/.vim/bundle

Usage

  • Load any existing sample available in the samples folder

      :e glider.txt
    
  • Or set up any N x M grid with # as the living cell and <space> as the dead cell

  • Run the simulation using :GOL

  • Interrupt the simulation using Ctrl+C

  • You can modify the grid at any point and run :GOL again.

  • You can call the GameOfLife(living, dead) function and pass it different characters. Example:

      call GameOfLife('O','+')