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

abcd > a b c d - 250 entries

transform the single spaces into 4 spaces repeat for each line

  • Best score: 15
  • Best player score: 15
  • Position: #24 / 197
  • Number of attempts: 1
Printable ASCII characters - 95 entries

From a blank input, print all 95 printing ASCII characters one per line, from space to tilde.

  • Best score: 22
  • Best player score: 48
  • Position: #33 / 38
  • Number of attempts: 1
Aligning function arguments to match a specific coding style - 181 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: #10 / 62
  • Number of attempts: 3
replacing each line of a block selection - 2740 entries

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

  • Best score: 18
  • Best player score: 18
  • Position: #22 / 724
  • Number of attempts: 5
Switch function arguments - 1933 entries

How to switch two arguments of a function.

  • Best score: 3
  • Best player score: 11
  • Position: #17 / 617
  • Number of attempts: 5
Remove semicolons after expressions - 511 entries

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

  • Best score: 6
  • Best player score: 6
  • Position: #18 / 225
  • Number of attempts: 3
switch variable - 4863 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 12
  • Position: #690 / 1688
  • Number of attempts: 1
The meaning - 515 entries

Numbers are fun!

  • Best score: 5
  • Best player score: 5
  • Position: #49 / 330
  • Number of attempts: 1
Shebangs for all - 1719 entries

We've all seen or used a shebang once or twice. Ditch the specific paths and leave just a dynamic Ruby and Python bath behind.

  • Best score: 11
  • Best player score: 12
  • Position: #92 / 458
  • Number of attempts: 5
A Simple One - 870 entries

Here is a very simple one - just to illustrate/introduce a vim feature that some people seem to miss...

  • Best score: 9
  • Best player score: 9
  • Position: #203 / 581
  • Number of attempts: 1
Whitespace, empty lines and tabs - 2774 entries

Convert tabs to spaces, strip empty lines and trailing whitespace.

  • Best score: 16
  • Best player score: 19
  • Position: #130 / 632
  • Number of attempts: 6
Simple text editing with Vim - 11354 entries

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

  • Best score: 13
  • Best player score: 13
  • Position: #12 / 3335
  • Number of attempts: 7
Reformat/Refactor a Golfer Class - 5804 entries

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

  • Best score: 32
  • Best player score: 33
  • Position: #180 / 1438
  • Number of attempts: 14
Rolf Bjaanes
Twitter:

Developer @ Agens (@agens) Previously at @sixtyno, @powow and @gitorious.

entered into 13 challenges

contributed 0 challenges