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

Extract argument from function - 2401 entries

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

  • Best score: 13
  • Best player score: 17
  • Position: #580 / 768
  • Number of attempts: 3
Search and Replace 0 - 5124 entries

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

  • Best score: 12
  • Best player score: 16
  • Position: #1221 / 1670
  • Number of attempts: 5
vim1001 - 315 entries

change number 1001 into a "vim1001 sequence". (My first challenge, hope it is not too bad... )

  • Best score: 17
  • Best player score: 26
  • Position: #87 / 111
  • Number of attempts: 1
-a-b-c- - 3237 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 17
  • Position: #895 / 1145
  • Number of attempts: 3
Two become one - 736 entries

We have two c arrays and want to make one two dimensional out of it. Can we do that?

  • Best score: 25
  • Best player score: 35
  • Position: #154 / 212
  • Number of attempts: 3
Where should I put the Newline? - 898 entries

Help me put the newline.

  • Best score: 7
  • Best player score: 10
  • Position: #437 / 446
  • Number of attempts: 2
Mess in revision history - 1228 entries

Help Joe clean up what Steve has cobbled.

  • Best score: 17
  • Best player score: 30
  • Position: #204 / 256
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10752 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 15
  • Position: #2966 / 3713
  • Number of attempts: 5
attr_aligner - 3565 entries

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

  • Best score: 19
  • Best player score: 31
  • Position: #423 / 709
  • Number of attempts: 5
quotes inside quotes - 3200 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
  • Position: #591 / 1091
  • Number of attempts: 2
Words in parens - 13034 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 18
  • Position: #2857 / 3988
  • Number of attempts: 7
SFD-ROC: vimvimvim - 1641 entries

Oh no, this line is longer than 80 chars... put each 'vim' on a new line.

  • Best score: 8
  • Best player score: 14
  • Position: #367 / 456
  • Number of attempts: 1
Switch function arguments - 2204 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 11
  • Position: #97 / 681
  • Number of attempts: 6
Simple text editing with Vim - 13576 entries

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

  • Best score: 13
  • Best player score: 24
  • Position: #3230 / 3892
  • Number of attempts: 2
compiled wrong
Twitter:

I (try to) notice that I am confused.

entered into 14 challenges

contributed 0 challenges