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

ASCII-art Histogram - 183 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
  • Number of attempts: 1
Reformat/Refactor a Golfer Class - 5569 entries

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

  • Best score: 32
  • Best player score: 39
  • Number of attempts: 6
Split the words - 334 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
  • Number of attempts: 3
convert yml into java pojo field - 717 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
  • Number of attempts: 2
Split line with dots - 1916 entries

This line is too long, split it.

  • Best score: 15
  • Best player score: 23
  • Number of attempts: 2
Build a six - 245 entries

Just enjoy building "a" floors...

  • Best score: 22
  • Best player score: 22
  • Number of attempts: 3
Words in parens - 11376 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 6
Simple text editing with Vim - 10680 entries

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

  • Best score: 13
  • Best player score: 14
  • Number of attempts: 5
Hash staircase - 34 entries

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

  • Best score: 21
  • Best player score: 21
  • Number of attempts: 4
One number per line - 14200 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 2
Simple, Practical, and Common - 26839 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
  • Number of attempts: 6
Increment each number - 595 entries

Increment each number individually by one

  • Best score: 15
  • Best player score: 15
  • Number of attempts: 4
Applying same text modification in several lines - 1994 entries

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

  • Best score: 13
  • Best player score: 13
  • Number of attempts: 5
The meaning - 504 entries

Numbers are fun!

  • Best score: 5
  • Best player score: 5
  • Number of attempts: 2
change parenthesis - 186 entries

change the pair of braces into a pair of parentheses

  • Best score: 9
  • Best player score: 9
  • Number of attempts: 4
A HAPPY NEW YEAR 2014 ! - 9728 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Number of attempts: 3
Swap values inside brackets - 1757 entries

Easy challenge.

  • Best score: 13
  • Best player score: 14
  • Number of attempts: 9
Song Transcription Oops - 159 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
  • Number of attempts: 1
remove lines containing the word "reader" - 2179 entries

easy stuff

  • Best score: 9
  • Best player score: 10
  • Number of attempts: 1
Add semicolons - 4387 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 4
Copy three lines - 2237 entries

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

  • Best score: 13
  • Best player score: 17
  • Number of attempts: 6
-a-b-c- - 2689 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 14
  • Number of attempts: 7
Ruby 1.9 compat - 557 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
  • Number of attempts: 5
Mess in revision history - 1008 entries

Help Joe clean up what Steve has cobbled.

  • Best score: 17
  • Best player score: 21
  • Number of attempts: 5
Box it - 4263 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Number of attempts: 8
Cool or not? - 546 entries

abc trying to be cool or not...

  • Best score: 15
  • Best player score: 15
  • Number of attempts: 4
Team names - 1507 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 17
  • Number of attempts: 1
Two pairs of cluster of letters creates word - 508 entries

Clean and group.

  • Best score: 17
  • Best player score: 17
  • Number of attempts: 7
Vim tetris - 338 entries

Vim can play tetris too!

  • Best score: 21
  • Best player score: 21
  • Number of attempts: 9
serent
Twitter:

entered into 29 challenges

contributed 0 challenges