Find out who is the fastest vimmer with a game of vim races.
Vim racers are presented with a vim session with two open buffers. Their goal is to edit the open buffer (the "before" file) until it looks like the alternate buffer (the "after" file).
When the "before" file is written, it's compared to the "after" file. When they are identical, a banner appears to declare that player is the winner. The first player to make the winner banner appear wins.
There are only a few rules:
- No
.vimrc
, no plugins: just vim. - No copying from the "after" file (yanking,
:read
ing,C-xC-l
ing, or anything else that pulls the changes from the other file).
- Two players.
- A computer to act as a server with:
tmate
.- A clone of the vimraces repository.
- A relatively modern version of
vim
.
- Two computers to act as clients. Any computer with an SSH client will do.
- A projector.
- An internet connection.
-
Run the vimraces setup script on the server:
cd vimraces ./setup
-
Hook the server up to the projector.
-
Open up two terminal emulator windows, so they're both visible.
-
In each window,
cd
to thevimraces/player1
andvimraces/player2
directories respectively. -
Start a
tmate
session in each of those windows. -
Set the two client laptops up facing each other, so they can't see the other's screen.
-
Connect to one of the
tmate
sessions from each client laptop. -
From each client run
../race 1
. -
Race until someone is declared the winner!
-
Quit
vim
, and run../race 2
,../race 3
, and so on.