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

Cleanining up 80 column concatenated text - 185 entries

1. Put the whole query on one line, remove the concatenation operators 2. Remove the double spaces that appear a few times in the query 3. Use string-interpolated variable statementPid rather than the ugly concatenation

  • Best score: 31
  • Best player score: 33
  • Position: #17 / 74
  • Number of attempts: 3
Aligning function arguments to match a specific coding style - 202 entries

Most projects have specific coding style guidelines. In this case, the argument list must be broken into a new line for each argument, with the argument names right aligned, taking into account pointers.

  • Best score: 16
  • Best player score: 17
  • Position: #20 / 64
  • Number of attempts: 3
replacing each line of a block selection - 2791 entries

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

  • Best score: 18
  • Best player score: 22
  • Position: #405 / 732
  • Number of attempts: 6
Append semicolon after expressions - 942 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 11
  • Position: #13 / 385
  • Number of attempts: 3
Reverse and double space - 445 entries

Reverse the order of the given lines and double space everything

  • Best score: 14
  • Best player score: 14
  • Position: #32 / 183
  • Number of attempts: 4
un-C-escape string - 54 entries

Convert escape sequences to characters

  • Best score: 12
  • Best player score: 12
  • Position: #27 / 48
  • Number of attempts: 1
The meaning - 521 entries

Numbers are fun!

  • Best score: 5
  • Best player score: 5
  • Position: #113 / 336
  • Number of attempts: 1
It'ss tooo coold too typpe todaay - 207 entries

My hands are numb with cold. It's hard to type correctly.

  • Best score: 16
  • Best player score: 24
  • Position: #81 / 93
  • Number of attempts: 1
Reformat long lines - 329 entries

Rearrange this ruby method call to put each parameter on its own line. Could become a useful macro.

  • Best score: 15
  • Best player score: 15
  • Position: #15 / 129
  • Number of attempts: 4
John Dahlström
Twitter:

Frilansande programmerare som tycker det är kul att slänga ihop nyttiga scripts på fritiden.

entered into 9 challenges

contributed 0 challenges