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

Simple, Practical, and Common - 33585 entries

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.

  • Best score: 22
  • Best player score: 22
  • Position: #1658 / 7408
  • Number of attempts: 6
One number per line - 18711 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 14
  • Position: #494 / 3858
  • Number of attempts: 2
Swap values inside brackets - 2488 entries

Easy challenge.

  • Best score: 14
  • Best player score: 14
  • Position: #24 / 577
  • Number of attempts: 9
Applying same text modification in several lines - 2870 entries

Remove identical text at the beginning of several lines and the closing parenthesis.

  • Best score: 12
  • Best player score: 13
  • Position: #123 / 848
  • Number of attempts: 5
Add semicolons - 10848 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Position: #7 / 3061
  • Number of attempts: 4
Split line with dots - 2144 entries

This line is too long, split it.

  • Best score: 15
  • Best player score: 23
  • Position: #492 / 634
  • Number of attempts: 2
remove lines containing the word "reader" - 3574 entries

easy stuff

  • Best score: 9
  • Best player score: 10
  • Position: #579 / 1158
  • Number of attempts: 1
Box it - 7902 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Position: #20 / 1874
  • Number of attempts: 8
Hash staircase - 56 entries

Can you use a strategy to come up with this pattern?

  • Best score: 21
  • Best player score: 21
  • Position: #6 / 25
  • Number of attempts: 4
Cool or not? - 829 entries

abc trying to be cool or not...

  • Best score: 15
  • Best player score: 15
  • Position: #7 / 230
  • Number of attempts: 4
Two pairs of cluster of letters creates word - 749 entries

Clean and group.

  • Best score: 17
  • Best player score: 17
  • Position: #7 / 178
  • Number of attempts: 7
Copy three lines - 2872 entries

If the site is up (by some miracle), make the text under every header identical.

  • Best score: 13
  • Best player score: 17
  • Position: #287 / 640
  • Number of attempts: 6
Team names - 1836 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 17
  • Position: #307 / 588
  • Number of attempts: 1
Build a six - 294 entries

Just enjoy building "a" floors...

  • Best score: 22
  • Best player score: 22
  • Position: #29 / 95
  • Number of attempts: 3
Increment each number - 1023 entries

Increment each number individually by one

  • Best score: 15
  • Best player score: 15
  • Position: #12 / 248
  • Number of attempts: 4
Song Transcription Oops - 243 entries

When transcribing vocal music to Canjo Tab you can start by finding the lowest note and assigning that to zero and working your way up from there. However, without fail, I tend to miscount the notes and when I am near done I find a lower note. I mark this with a "z". This means I have to increase all the previous ones by 1. just a sting of numbers :)

  • Best score: 15
  • Best player score: 15
  • Position: #5 / 78
  • Number of attempts: 1
change parenthesis - 296 entries

change the pair of braces into a pair of parentheses

  • Best score: 9
  • Best player score: 9
  • Position: #9 / 161
  • Number of attempts: 4
convert yml into java pojo field - 857 entries

How fast vim can create fields for java pojo i.e class declaration referring to a (simple) yml file

  • Best score: 29
  • Best player score: 29
  • Position: #60 / 227
  • Number of attempts: 2
-a-b-c- - 3213 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 14
  • Position: #384 / 1137
  • Number of attempts: 7
Vim tetris - 353 entries

Vim can play tetris too!

  • Best score: 21
  • Best player score: 21
  • Position: #23 / 102
  • Number of attempts: 9
Mess in revision history - 1183 entries

Help Joe clean up what Steve has cobbled.

  • Best score: 17
  • Best player score: 21
  • Position: #98 / 249
  • Number of attempts: 5
Split the words - 357 entries

Add the spaces manually if you must, but if you use Vim's spell checking feature wisely, I think you'll save a LARGE number of strokes.

  • Best score: 18
  • Best player score: 38
  • Position: #67 / 109
  • Number of attempts: 3
A HAPPY NEW YEAR 2014 ! - 10657 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #1754 / 3679
  • Number of attempts: 3
Words in parens - 12928 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #964 / 3960
  • Number of attempts: 6
ASCII-art Histogram - 320 entries

Create an ASCCI-art histogram for the given numbers. Make sure not to leave trailing whitespaces. Thanks to VimGolf I recently discovered a feature of Vim thAT blew my mind. I'm curious to see what real ninjas make of it ;-)

  • Best score: 33
  • Best player score: 55
  • Position: #38 / 57
  • Number of attempts: 1
The meaning - 574 entries

Numbers are fun!

  • Best score: 5
  • Best player score: 5
  • Position: #286 / 362
  • Number of attempts: 2
Ruby 1.9 compat - 627 entries

Remember when Ruby supported `when <expr> :`? Well, it doesn't in 1.9, so let's make sure we use `then`, without ruining our lovely new hash syntax!

  • Best score: 14
  • Best player score: 15
  • Position: #116 / 233
  • Number of attempts: 5
Simple text editing with Vim - 12712 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 14
  • Position: #1736 / 3671
  • Number of attempts: 5
Reformat/Refactor a Golfer Class - 6898 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 28
  • Best player score: 39
  • Position: #747 / 1689
  • Number of attempts: 6
serent
Twitter:

entered into 29 challenges

contributed 0 challenges