RedditPP Mascot

RedditPP

r/vim β€’ … β€’ u/xeere

a working game of life in vim normal mode

rip John Conway ------------------------------------- run vim with -u NONE

G13k"zyG@z:

"ndd on the first line then [count]@n to update the screen. It can be any size as long as the edges are the same and only 'O's are used as living cells β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ OOO β”‚ β”‚ O O β”‚ β”‚ O O β”‚ β”‚ O β”‚ β”‚ O OOO β”‚ β”‚ O O O β”‚ β”‚ O O β”‚ β”‚ O O β”‚ β”‚ O O β”‚ β”‚ β”‚ β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ code section OΒ¬OΒ¬/β”Œβ”€ jl@unext "as#Β¬gg0"_Dp:s/β”‚/j0l@u/e :s/─/@c/e :s/^.$/@xl@u/e 0"yy$/β”Œβ”€ /# s^RaΒ¬@ynext r+h"0ylk"1yll"2yll"3ylj"4ylj"5ylh"6ylh"7ylgg0"_D"0p"1p"2p"3p"4p"5p"6p"7p:s/Q//ge :s/_/q/ge :s/\A//ge :s/^\a\=$/1/e :s/^\a\a$/2/e :s/^\a\a\a$/3/e :s/^\a\a\a\a\+$/4/e jddggO^RaΒ¬:s% %:s#3#/+\\^V^V\^V rQ#e\^V :s#^.$#/+\\^V^V\^V r #e\^V %e :s%O%:s#4#/+\\^V^V\^V r_#e\^V :s#3#/+\\^V^V\^V rO#e\^V :s#2#/+\\^V^V\^V rO#e\^V :s#1#/+\\^V^V\^V r_#e\^V %e 0"zy$ddoΒ¬k@z0"zy$@z@znext gg:/β”Œβ”€/,/β”€β”˜/s/Q/O/ge gg:/β”Œβ”€/,/β”€β”˜/s/_/ /ge ggnext :set nohlsearch :map! Β¬ <Esc> :map! ^R <C-R> :map! ^V <C-V> gg/code section j"wy/next /next w"uy/next /next w"xy/next /next w"cy/next G"nyy: gg@wgg2dd:

β€” 0