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 - 530 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: #193 / 196
  • Number of attempts: 2
Sierpinski's Triangle - 79 entries

Build the famous fractal, Sierpinski's Triangle.

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

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

  • Best score: 17
  • Best player score: 33
  • Position: #157 / 175
  • Number of attempts: 2
Dehamlizing - 165 entries

Change this piece of HAML code back into erb

  • Best score: 32
  • Best player score: 52
  • Position: #54 / 64
  • Number of attempts: 3
Vertical Limit - 2310 entries

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

  • Best score: 21
  • Best player score: 34
  • Position: #657 / 702
  • Number of attempts: 2
Switch function arguments - 1945 entries

How to switch two arguments of a function.

  • Best score: 3
  • Best player score: 23
  • Position: #604 / 618
  • Number of attempts: 1
Append semicolon after expressions - 923 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 15
  • Position: #349 / 375
  • Number of attempts: 2
Reverse and double space - 433 entries

Reverse the order of the given lines and double space everything

  • Best score: 14
  • Best player score: 19
  • Position: #157 / 179
  • Number of attempts: 2
Remove noise from HTTP log - 653 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: #249 / 256
  • Number of attempts: 1
Remove semicolons after expressions - 511 entries

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

  • Best score: 6
  • Best player score: 10
  • Position: #211 / 225
  • Number of attempts: 3
switch variable - 4865 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 18
  • Position: #1581 / 1689
  • Number of attempts: 1
The meaning - 515 entries

Numbers are fun!

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

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 18
  • Position: #482 / 613
  • Number of attempts: 2
Generate Fibonacci Numbers - 218 entries

Use your super vim powers to generate Fibonacci Numbers.

  • Best score: 19
  • Best player score: 23
  • Position: #56 / 89
  • Number of attempts: 2
Shebangs for all - 1730 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: #412 / 460
  • Number of attempts: 2
Reverse and count - 403 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: #100 / 153
  • Number of attempts: 3
Compile C - 288 entries

You might have to get clever to do this one.

  • Best score: 19
  • Best player score: 24
  • Position: #87 / 115
  • Number of attempts: 2

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