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

Reformat/Refactor a Golfer Class - 5627 entries

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

  • Best score: 32
  • Best player score: 52
  • Number of attempts: 1
Make HTML List - 917 entries

Turn the comma separated list into an unordered html list.

  • Best score: 33
  • Best player score: 39
  • Number of attempts: 3
Alsa configuration - 475 entries

I'm tweaking my ~/.asoundrc file!

  • Best score: 22
  • Best player score: 36
  • Number of attempts: 1
replacing each line of a block selection - 2657 entries

replace each line's ../assets/js with /javascripts

  • Best score: 18
  • Best player score: 35
  • Number of attempts: 1
Sort and add attributes - 1110 entries

Sort the states and add the attribute country to each record.

  • Best score: 33
  • Best player score: 33
  • Number of attempts: 1
I forgot quotes - 13713 entries

Oops.

  • Best score: 10
  • Best player score: 14
  • Number of attempts: 6
Append semicolon after expressions - 892 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 13
  • Number of attempts: 1
That hyphen - 2319 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 12
  • Number of attempts: 4
Swap values - 4015 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 12
  • Number of attempts: 5
comments galore - 913 entries

Basic comment reformatting

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 1
Vertical Limit - 2211 entries

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

  • Best score: 21
  • Best player score: 29
  • Number of attempts: 1
switch variable - 4541 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 12
  • Number of attempts: 1
V to the i - 4251 entries

Input is 99 V's. Output is 100 i's.

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 2
Just the middle - 10086 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 3
Words in parens - 11786 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 16
  • Number of attempts: 1
Simple text editing with Vim - 10896 entries

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

  • Best score: 13
  • Best player score: 30
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 9958 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 14
  • Number of attempts: 1
Search and Replace 0 - 4383 entries

Replace every instance of 'aaa' with 'xaaax'.

  • Best score: 12
  • Best player score: 14
  • Number of attempts: 3
-a-b-c- - 2813 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 15
  • Number of attempts: 1
Scrambled numbers - 753 entries

Four is NOT 1. One is 1.

  • Best score: 18
  • Best player score: 32
  • Number of attempts: 2
Space out the alphabet - 1449 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 15
  • Number of attempts: 7
Extract argument from function - 2106 entries

The aim is to see if you can do some refactoring very fast.

  • Best score: 13
  • Best player score: 17
  • Number of attempts: 1
quotes inside quotes - 2909 entries

taken from tip 85 of the very good book 'Practical Vim: Edit Text at the Speed of Thought' ! I'd be interested what people use :)

  • Best score: 14
  • Best player score: 16
  • Number of attempts: 2
Vice versa - 6664 entries

Little role switching.

  • Best score: 12
  • Best player score: 17
  • Number of attempts: 2
The Cake is a Lie - 1143 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 10
  • Number of attempts: 1
Collect List - 3789 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 20
  • Number of attempts: 3
Basic renumbering - 5014 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 24
  • Number of attempts: 1
attr_aligner - 3194 entries

Two attr keywords. Two separate indentations. Align the colons.

  • Best score: 19
  • Best player score: 32
  • Number of attempts: 2
iNaKoll
Twitter:

entered into 28 challenges

contributed 0 challenges