Skip to content

Instantly share code, notes, and snippets.

@jaxbot
Created January 7, 2014 03:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaxbot/8294448 to your computer and use it in GitHub Desktop.
Save jaxbot/8294448 to your computer and use it in GitHub Desktop.
FizzBuzz in VimL
let c = 1
while c <= 100
if eval("c % 15") == 0
echo "FizzBuzz"
elseif eval("c % 3") == 0
echo "Fizz"
elseif eval("c % 5") == 0
echo "Buzz"
else
echo c
endif
let c += 1
endwhile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment