Draw a name from the hat Create a text file containing all of the names in the hat, one per line. run :source path/to/raffle.vim invoke :call Raffle() It should choose a random line, and eliminate all others.