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

simple replacements - 775 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 29
  • Position: #157 / 176
  • Number of attempts: 1
Inverting Lines - 1070 entries

A simple challenge to invert all lines, except the first.

  • Best score: 10
  • Best player score: 15
  • Position: #219 / 294
  • Number of attempts: 2
Making 3 line function a one liner. - 112 entries

Simple challenge for frequent action while programming.

  • Best score: 4
  • Best player score: 4
  • Position: #25 / 77
  • Number of attempts: 1
Modernise code - 683 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 52
  • Position: #118 / 157
  • Number of attempts: 3
swap number pairs - 1314 entries

Swap the numbers in a bunch of 2-element arrays.

  • Best score: 16
  • Best player score: 47
  • Position: #223 / 251
  • Number of attempts: 1
Get mail address from outlook format - 560 entries

Create a mail list space separated of mail list formatted by outlook

  • Best score: 15
  • Best player score: 25
  • Position: #151 / 173
  • Number of attempts: 2
prepend * to every non-blank line - 5835 entries

Prepend an asterisk to every non-blank line in the input file.

  • Best score: 10
  • Best player score: 14
  • Position: #838 / 1436
  • Number of attempts: 5
Word frequency alignment - 233 entries

You've got to align the second column, but the spacing is inconvenient and there are nasty tabs in the way. If you're a "real Vim ninja," this could be very quick indeed...

  • Best score: 5
  • Best player score: 5
  • Position: #108 / 142
  • Number of attempts: 6
Switch function arguments - 1961 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 11
  • Position: #178 / 621
  • Number of attempts: 5
Append semicolon after expressions - 934 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 11
  • Position: #128 / 379
  • Number of attempts: 4
Remove noise from HTTP log - 653 entries

This piece of log (from the year 2000) contains some irrelevant data. We only want to see the HTTP method and resource.

  • Best score: 15
  • Best player score: 16
  • Position: #187 / 256
  • Number of attempts: 8
Generate English Alphabets - 427 entries

Start with a, get up to z.

  • Best score: 19
  • Best player score: 42
  • Position: #175 / 190
  • Number of attempts: 2
._.
Twitter:

NaN

entered into 12 challenges

contributed 0 challenges