Real Vim ninjas count every keystroke - do you?

Pick a challenge, fire up Vim, and show us what you got.

Changelog, Rules & FAQ, updates: @vimgolf, RSS.

Your VimGolf key: please sign in

$ gem install vimgolf
$ vimgolf setup
$ vimgolf put [challenge ID]

26416 active golfers, 302379 entries, 461 challenges

Open VimGolf challenges

199 Fibonacci Numbers - 35 entries

Generate 199 Fibonacci Numbers using, if you like, the function S(x,y), a vimscript to sum two big numbers in reverse order.

LaTeX to XML Math Delimiters - 35 entries

Vim is amazing when used to edit MediaWiki text, but typing "<math> . . . </math>" can be tiresome and frustrating if formulas are used often. LaTeX delimiters are so concise and even come in two flavors: "\( . . . \)" for inline math and "\[ . . . \]" for centered formulas. The goal is to perform the following conversions: "\( . . . \)" becomes "<math>. . .</math>" "\[ . . . \]" becomes "<center><math>. . .</math></center>"

50 factorials mod 97 - 24 entries

List 1! to 50!, but give your answer mod 97.

Config Sections - 25 entries

Section me!

Custom McCarthy sequence - 22 entries

Generate the first one hundred and twenty numbers (starting with n=1). See here for some inspiration: http://en.wikipedia.org/wiki/McCarthy_91_function

Palindrome numbers - 11 entries

For each number compute its associated palindrome. First number (first line) has been eaten! #prime

Acute accents - 24 entries

Featuring all 17 lowercase letters with an acute accent digraph. Find a way to automate the digraphs.

Convert pasted text into Markdown - 17 entries

I often need to copy/paste text into Markdown files. The challenge here is to wrap the lines in a way that prefers breaks after periods, commas, or other logical demarcations. There should be no spaces at the beginning of a line.

Forgot to follow the naming convention... - 19 entries

Rename everything like MY_VAR_SOMETHING to MyVarSomething.

Conway sequence - 20 entries

Generate the the first fifteen numbers. See here for more information: http://en.wikipedia.org/wiki/Look-and-say_sequence

Splits long lines in more readable ones - 5 entries

Those tests have too long lines. We have to split the to have more readable ones. This is based on a real project with Ruby and RSpec.

VimGolf Chatter