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

Shuffle and Sort - 244 entries

The values where sorted incorrectly. Get them back to how they are supposed to be

  • Best score: 17
  • Best player score: 30
  • Position: #62 / 70
  • Number of attempts: 1
Aligning function arguments to match a specific coding style - 279 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: 27
  • Position: #65 / 75
  • Number of attempts: 1
Switch function arguments - 2229 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 11
  • Position: #17 / 684
  • Number of attempts: 4
Append semicolon after expressions - 1086 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 13
  • Position: #281 / 426
  • Number of attempts: 1
Remove noise from HTTP log - 758 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: #160 / 281
  • Number of attempts: 2
Remove semicolons after expressions - 685 entries

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

  • Best score: 6
  • Best player score: 6
  • Position: #19 / 270
  • Number of attempts: 3
switch variable - 5128 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 11
  • Position: #116 / 1764
  • Number of attempts: 4
Reformat/Refactor a Golfer Class - 7681 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 7
  • Best player score: 42
  • Position: #1020 / 1889
  • Number of attempts: 2
noom narze
Twitter:

TCS??, TUP24, CU50, CP34, NetService trainee, ex-Wongnai, Figabyte

entered into 8 challenges

contributed 0 challenges