https://github.com/psychollama/conway.vim
Conway's Game of Life, written in Vimscript. Because reasons.
https://github.com/psychollama/conway.vim
conwaysgameoflife vim-plugin vimscript
Last synced: 3 months ago
JSON representation
Conway's Game of Life, written in Vimscript. Because reasons.
- Host: GitHub
- URL: https://github.com/psychollama/conway.vim
- Owner: PsychoLlama
- Created: 2017-11-23T17:27:01.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-22T01:18:08.000Z (almost 7 years ago)
- Last Synced: 2025-02-05T17:58:59.537Z (4 months ago)
- Topics: conwaysgameoflife, vim-plugin, vimscript
- Language: Vim script
- Homepage:
- Size: 459 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vim-gol
A hacked-out implementation of [Conway's Game of Life](https://en.wikipedia.org/wiki/Conway%27s_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
" 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 `
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`)
- `` toggles the cell under your cursor