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

Plotting some variables in python - 581 entries

4 sets of (x,y) variables to plot. Just increment the numbers! Well, let's change the colors of the lines as well. Oh and we meant to plot the absolute values of course.

  • Best score: 34
  • Best player score: 35
  • Position: #32 / 118
  • Number of attempts: 8
simple replacements - 674 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 20
  • Position: #51 / 157
  • Number of attempts: 8
Inverting Lines - 978 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #131 / 268
  • Number of attempts: 5
Modernise code - 645 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 35
  • Position: #51 / 149
  • Number of attempts: 10
Yo To Hello - 983 entries

Simply Turn Yo To Hello

  • Best score: 10
  • Best player score: 10
  • Position: #321 / 454
  • Number of attempts: 2
prepend * to every non-blank line - 5829 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #690 / 1434
  • Number of attempts: 5
Right Align Part of the line - 71 entries

The challenge is to right align a part of the line - this is useful in some SQL queries where it's more clear which are the fields displayed

  • Best score: 19
  • Best player score: 20
  • Position: #15 / 27
  • Number of attempts: 6
Python Hello World! Reformatting - 881 entries

A novice Python using prints Hello World! and a pro shows him different way. Using vim to get into pro style from novice, win the challenge.

  • Best score: 39
  • Best player score: 44
  • Position: #229 / 340
  • Number of attempts: 2
Don't know what this is - 1923 entries

Replace contents of brackets with matching number of spaces. Don't ask what the format's supposed to be.

  • Best score: 11
  • Best player score: 11
  • Position: #128 / 565
  • Number of attempts: 8
attr_aligner - 3360 entries

Two attr keywords. Two separate indentations. Align the colons.

  • Best score: 19
  • Best player score: 31
  • Position: #438 / 679
  • Number of attempts: 3
Reconstruct the Sentence - 1077 entries

Get the sentence back in the proper order, remove duplicate lines, and then combine the separate lines into one.

  • Best score: 20
  • Best player score: 21
  • Position: #198 / 333
  • Number of attempts: 17
Matrices Matlab #1
Twitter:

entered into 11 challenges

contributed 0 challenges