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

Paste a column after a column - 2632 entries

This task is very common while using multi-cursor. What is the elegant vim way ?

  • Best score: 14
  • Best player score: 17
  • Position: #242 / 570
  • Number of attempts: 5
Many duplicates - 1465 entries

Quick and easy

  • Best score: 7
  • Best player score: 7
  • Position: #44 / 478
  • Number of attempts: 2
delete swap - 1818 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #387 / 567
  • Number of attempts: 3
simple replacements - 1833 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 21
  • Position: #163 / 396
  • Number of attempts: 5
One number per line - 18831 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 19
  • Position: #2032 / 3889
  • Number of attempts: 4
Just the middle - 11541 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #3230 / 4230
  • Number of attempts: 3
Vice versa - 7974 entries

Little role switching.

  • Best score: 12
  • Best player score: 16
  • Position: #1459 / 2146
  • Number of attempts: 1
Change attribute to getter - 163 entries

Wrap attributes with a getter method.

  • Best score: 24
  • Best player score: 24
  • Position: #36 / 64
  • Number of attempts: 5
Delete to the end of the current line - 855 entries

Delete to the end of the current line, but keep the character under the cursor.

  • Best score: 5
  • Best player score: 5
  • Position: #275 / 411
  • Number of attempts: 3
quotes inside quotes - 3185 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: #369 / 1086
  • Number of attempts: 4
Get rid of html tags - 423 entries

Want to read more about Vim's background? Then get rid of those html tags...

  • Best score: 12
  • Best player score: 17
  • Position: #141 / 245
  • Number of attempts: 2
Brian Rhees
Github:

entered into 11 challenges

contributed 0 challenges