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

Sierpinski's Triangle - 79 entries

Build the famous fractal, Sierpinski's Triangle.

  • Best score: 25
  • Best player score: 160
  • Number of attempts: 2
Dehamlizing - 155 entries

Change this piece of HAML code back into erb

  • Best score: 32
  • Best player score: 52
  • Number of attempts: 3
Prefixes and suffixes - 510 entries

Generate all prefixes of "vimchallenge", then all suffixes.

  • Best score: 17
  • Best player score: 33
  • Number of attempts: 2
Interweave two blocks of text - 506 entries

Suppose you've got data on a list of things from multiple sources. They're all in separate chunks, so how might you create a tabular output?

  • Best score: 15
  • Best player score: 30
  • Number of attempts: 2
Reverse and count - 381 entries

Someone typed things upside down and now a Vim ninja needs to reverse the lines and count how many there are.

  • Best score: 18
  • Best player score: 29
  • Number of attempts: 3
Remove noise from HTTP log - 620 entries

This piece of log (from the year 2000) contains some irrelevant data. We only want to see the HTTP method and resource.

  • Best score: 15
  • Best player score: 26
  • Number of attempts: 1
Append semicolon after expressions - 887 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 15
  • Number of attempts: 2
Make it more readable - 1781 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 18
  • Number of attempts: 2
Remove semicolons after expressions - 467 entries

A follow-up for http://vimgolf.com/challenges/4fc9d767d3a0d4000100000e.

  • Best score: 6
  • Best player score: 10
  • Number of attempts: 3
The meaning - 506 entries

Numbers are fun!

  • Best score: 5
  • Best player score: 5
  • Number of attempts: 1
switch variable - 4473 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 18
  • Number of attempts: 1
Vertical Limit - 2189 entries

transform a succession of one word lines to a an array of strings

  • Best score: 21
  • Best player score: 34
  • Number of attempts: 2
Reverse and double space - 414 entries

Reverse the order of the given lines and double space everything

  • Best score: 14
  • Best player score: 19
  • Number of attempts: 2
Shebangs for all - 1643 entries

We've all seen or used a shebang once or twice. Ditch the specific paths and leave just a dynamic Ruby and Python bath behind.

  • Best score: 11
  • Best player score: 23
  • Number of attempts: 2
Compile C - 279 entries

You might have to get clever to do this one.

  • Best score: 19
  • Best player score: 24
  • Number of attempts: 2
Generate Fibonacci Numbers - 209 entries

Use your super vim powers to generate Fibonacci Numbers.

  • Best score: 19
  • Best player score: 23
  • Number of attempts: 2
Switch function arguments - 1858 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 23
  • Number of attempts: 1

Contributed Challenges

Sierpinski's Triangle - 79 entries

Build the famous fractal, Sierpinski's Triangle.

Tyler Breisacher
Twitter:

software engineer at @Hustle . Opinions expressed here are not necessarily those of my employer or any other group I am associated with. https://t.co/h4IxIZ3z4S

entered into 17 challenges

contributed 1 challenges