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

Search different SQL column with similar where clause - 360 entries

Replace a column in the where clause and convert all numbers from text to numeric, by replacing the leading 0 with the code 359.

  • Best score: 22
  • Best player score: 22
  • Position: #19 / 85
  • Number of attempts: 13
Simple, Practical, and Common - 33970 entries

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.

  • Best score: 22
  • Best player score: 33
  • Position: #6320 / 7503
  • Number of attempts: 2
Search and Replace 0 - 5115 entries

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

  • Best score: 12
  • Best player score: 16
  • Position: #1281 / 1667
  • Number of attempts: 1
Just the middle - 11590 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 11
  • Position: #4015 / 4246
  • Number of attempts: 6
Vice versa - 8011 entries

Little role switching.

  • Best score: 12
  • Best player score: 12
  • Position: #634 / 2153
  • Number of attempts: 14
Manual SQL - 178 entries

Change select and insert queries to simulate inserting a new record.

  • Best score: 48
  • Best player score: 156
  • Position: #51 / 52
  • Number of attempts: 1
I forgot quotes - 16179 entries

Oops.

  • Best score: 10
  • Best player score: 33
  • Position: #4162 / 4218
  • Number of attempts: 2
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: 19
  • Position: #1014 / 1091
  • Number of attempts: 3
Words in parens - 13032 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 23
  • Position: #3700 / 3986
  • Number of attempts: 1
Simple text editing with Vim - 13526 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #2118 / 3879
  • Number of attempts: 4
honeybearsoup
Github:

entered into 10 challenges

contributed 0 challenges