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 - 4526 entries

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

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 3
Where should I put the Newline? - 830 entries

Help me put the newline.

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 3
Extract argument from function - 2146 entries

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

  • Best score: 13
  • Best player score: 15
  • Number of attempts: 8
quotes inside quotes - 2973 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
  • Number of attempts: 4
Words in parens - 12475 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 27
  • Number of attempts: 1
Stairs Indenting - 387 entries

Indent each line with <line number> whitespaces.

  • Best score: 12
  • Best player score: 25
  • Number of attempts: 1
Vertical Limit - 2268 entries

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

  • Best score: 21
  • Best player score: 21
  • Number of attempts: 6
switch variable - 4806 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 4
Reverse Simple Deletion - 739 entries

You did the simple deletion, now reverse it.

  • Best score: 11
  • Best player score: 12
  • Number of attempts: 2
Search and Replace 0 - 4482 entries

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

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 4
Change the content of a string - 1270 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 24
  • Number of attempts: 3
Nicholas Lee-Hone
Twitter:

entered into 11 challenges

contributed 0 challenges