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

Interweave two blocks of text - 659 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
  • Position: #210 / 214
  • Number of attempts: 2
Sierpinski's Triangle - 86 entries

Build the famous fractal, Sierpinski's Triangle.

  • Best score: 25
  • Best player score: 160
  • Position: #25 / 27
  • Number of attempts: 2
Prefixes and suffixes - 629 entries

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

  • Best score: 17
  • Best player score: 33
  • Position: #171 / 196
  • Number of attempts: 2
Dehamlizing - 185 entries

Change this piece of HAML code back into erb

  • Best score: 32
  • Best player score: 52
  • Position: #60 / 72
  • Number of attempts: 3
Vertical Limit - 2538 entries

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

  • Best score: 21
  • Best player score: 34
  • Position: #705 / 754
  • Number of attempts: 2
Switch function arguments - 2136 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 23
  • Position: #646 / 662
  • Number of attempts: 1
Append semicolon after expressions - 1056 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 15
  • Position: #390 / 419
  • Number of attempts: 2
Reverse and double space - 500 entries

Reverse the order of the given lines and double space everything

  • Best score: 14
  • Best player score: 19
  • Position: #173 / 199
  • Number of attempts: 2
Remove noise from HTTP log - 717 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
  • Position: #264 / 273
  • Number of attempts: 1
Remove semicolons after expressions - 654 entries

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

  • Best score: 6
  • Best player score: 10
  • Position: #246 / 263
  • Number of attempts: 3
switch variable - 5071 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 18
  • Position: #1631 / 1748
  • Number of attempts: 1
The meaning - 575 entries

Numbers are fun!

  • Best score: 5
  • Best player score: 5
  • Position: #136 / 363
  • Number of attempts: 1
Make it more readable - 2005 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 18
  • Position: #510 / 650
  • Number of attempts: 2
Generate Fibonacci Numbers - 280 entries

Use your super vim powers to generate Fibonacci Numbers.

  • Best score: 19
  • Best player score: 23
  • Position: #63 / 100
  • Number of attempts: 2
Shebangs for all - 1998 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
  • Position: #451 / 515
  • Number of attempts: 2
Reverse and count - 473 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
  • Position: #115 / 176
  • Number of attempts: 3
Compile C - 420 entries

You might have to get clever to do this one.

  • Best score: 19
  • Best player score: 24
  • Position: #104 / 140
  • Number of attempts: 2

Contributed Challenges

Sierpinski's Triangle - 86 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