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]

Played Challenges

One number per line - 18367 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 21
  • Position: #2291 / 3786
  • Number of attempts: 3
Pretty multi-line bash - 216 entries

Bash line continuations are much prettier when they're column aligned.

  • Best score: 15
  • Best player score: 27
  • Position: #51 / 74
  • Number of attempts: 1
A grid of punctuation - 115 entries

Create a checkerboard of = and - in an 80×24 grid!

  • Best score: 16
  • Best player score: 16
  • Position: #19 / 54
  • Number of attempts: 2
ASCII Art - 80 entries

how good are you with simple regex?

  • Best score: 10
  • Best player score: 10
  • Position: #23 / 50
  • Number of attempts: 2
Sorting database text output - 204 entries

Sometimes it is nice to be able to quickly take column-formatted text output from the SQL command line and turn it into a list of useful data. In this case we want a unique, sorted list of the values from the second column combined into one comma-separated list. What is the fewest strokes you can do this in?

  • Best score: 24
  • Best player score: 24
  • Position: #34 / 78
  • Number of attempts: 1
Two become one - 703 entries

We have two c arrays and want to make one two dimensional out of it. Can we do that?

  • Best score: 25
  • Best player score: 32
  • Position: #118 / 202
  • Number of attempts: 2
A simple change - 393 entries

Just change the numbers in the most efficient way ...

  • Best score: 12
  • Best player score: 14
  • Position: #105 / 174
  • Number of attempts: 2
Switch function arguments - 1967 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 14
  • Position: #470 / 624
  • Number of attempts: 2
Make it more readable - 1882 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 16
  • Position: #386 / 620
  • Number of attempts: 2
И К
Twitter:

entered into 9 challenges

contributed 0 challenges