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

V to the i - 4641 entries

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

  • Best score: 7
  • Best player score: 7
  • Position: #100 / 1857
  • Number of attempts: 3
Extract argument from function - 2218 entries

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

  • Best score: 13
  • Best player score: 15
  • Position: #406 / 729
  • Number of attempts: 8
Search and Replace 0 - 4681 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #356 / 1550
  • Number of attempts: 4
Where should I put the Newline? - 845 entries

Help me put the newline.

  • Best score: 7
  • Best player score: 7
  • Position: #117 / 422
  • Number of attempts: 3
quotes inside quotes - 3030 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: 14
  • Position: #172 / 1045
  • Number of attempts: 4
Words in parens - 12736 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 27
  • Position: #3784 / 3919
  • Number of attempts: 1
Stairs Indenting - 428 entries

Indent each line with <line number> whitespaces.

  • Best score: 12
  • Best player score: 25
  • Position: #176 / 184
  • Number of attempts: 1
Vertical Limit - 2377 entries

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

  • Best score: 21
  • Best player score: 21
  • Position: #31 / 719
  • Number of attempts: 6
switch variable - 4945 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 11
  • Position: #331 / 1708
  • Number of attempts: 4
Reverse Simple Deletion - 772 entries

You did the simple deletion, now reverse it.

  • Best score: 11
  • Best player score: 12
  • Position: #295 / 432
  • Number of attempts: 2
Change the content of a string - 1354 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 24
  • Position: #293 / 522
  • Number of attempts: 3
Nicholas Lee-Hone
Twitter:

entered into 11 challenges

contributed 0 challenges