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

Changing URL path in CSS - 123 entries

What's the quickest way to swap out all the URLs in a CSS file? Is it wasted keystrokes using look-behinds and look-aheads? (I'm sorry for the delete/report--I made a mistake with the last one requiring an ugly search for graphic to replace with images. I just intended this to be a simple search and replace that might possibly generate some macros or normals solutions that are quicker)

  • Best score: 40
  • Best player score: 435
  • Position: #57 / 57
  • Number of attempts: 1
Inconsistent real estate paste - 178 entries

Format a hand-typed real estate listing that uses inconsistent punctuation into four sections

  • Best score: 24
  • Best player score: 254
  • Position: #53 / 53
  • Number of attempts: 1
replacing each line of a block selection - 2883 entries

replace each line's ../assets/js with /javascripts

  • Best score: 18
  • Best player score: 58
  • Position: #753 / 756
  • Number of attempts: 1
Switch function arguments - 2002 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 27
  • Position: #626 / 634
  • Number of attempts: 2
Append semicolon after expressions - 975 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 38
  • Position: #394 / 394
  • Number of attempts: 1
Reverse and double space - 471 entries

Reverse the order of the given lines and double space everything

  • Best score: 14
  • Best player score: 77
  • Position: #190 / 190
  • Number of attempts: 1
Remove semicolons after expressions - 580 entries

A follow-up for http://vimgolf.com/challenges/4fc9d767d3a0d4000100000e.

  • Best score: 6
  • Best player score: 15
  • Position: #244 / 245
  • Number of attempts: 3
switch variable - 4993 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 52
  • Position: #1716 / 1722
  • Number of attempts: 1
The meaning - 537 entries

Numbers are fun!

  • Best score: 5
  • Best player score: 8
  • Position: #339 / 345
  • Number of attempts: 1
Calculate the table totals - 123 entries

Go ahead... commit the treachery of using vim as a spreadsheet.

  • Best score: 33
  • Best player score: 177
  • Position: #40 / 41
  • Number of attempts: 1
Make it more readable - 1928 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 70
  • Position: #634 / 635
  • Number of attempts: 1
remove dupes from array - 1324 entries

given a random string that contains a ruby-esque array, make sure that there are no duplicate elements

  • Best score: 17
  • Best player score: 46
  • Position: #317 / 328
  • Number of attempts: 1
Noel Alejandro
Twitter:

entered into 12 challenges

contributed 0 challenges