Skip to content

Conway's Game of Life, written in Vimscript. Because reasons.

Notifications You must be signed in to change notification settings

PsychoLlama/conway.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vim-gol

Plugin Preview

A hacked-out implementation of Conway's Game of Life, written in Vimscript.

It's not good code, it'll probably break if you install it, but hey, I had an unreasonable amount of fun writing it.

So if I haven't talked you out of trying it yet, here's how you use it. Try at your own peril.

Installation

" Vim-plug
Plug 'PsychoLlama/vim-gol', { 'on': 'GOL' }

" Vundle
Plugin 'PsychoLlama/vim-gol'

Commands

:GOL

Starts a new blank game in a tab. The function of some main keys are changed to make interacting easier.

:GOLPattern <name>

Places a pattern where your cursor is. For example, :GOLPattern glider adds a glider.

:GOLPlay/:GOLPause

Starts and stops the game, respectively.

:GOLReset

Resets the game state back to an empty screen.

Mappings

  • p toggles play & pause
  • Both i & a add a pattern (:GOLPattern)
  • r resets game state (:GOLReset)
  • <space> toggles the cell under your cursor

About

Conway's Game of Life, written in Vimscript. Because reasons.

Topics

Resources

Stars

Watchers

Forks