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

delete swap - 612 entries

delete all swap

  • Best score: 5
  • Best player score: 6
  • Position: #159 / 209
  • Number of attempts: 1
hello-world-vimgolf - 1666 entries

Simple number generation

  • Best score: 10
  • Best player score: 11
  • Position: #238 / 478
  • Number of attempts: 4
Plotting some variables in python - 1237 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: #49 / 259
  • Number of attempts: 8
simple replacements - 1140 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 20
  • Position: #83 / 253
  • Number of attempts: 8
Inverting Lines - 1399 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #190 / 383
  • Number of attempts: 5
Modernise code - 933 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 35
  • Position: #63 / 209
  • Number of attempts: 10
Yo To Hello - 1059 entries

Simply Turn Yo To Hello

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

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

  • Best score: 10
  • Best player score: 11
  • Position: #703 / 1477
  • Number of attempts: 5
Right Align Part of the line - 96 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 / 31
  • Number of attempts: 6
Python Hello World! Reformatting - 907 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: #235 / 353
  • Number of attempts: 2
Don't know what this is - 1959 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 / 574
  • Number of attempts: 8
attr_aligner - 3402 entries

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

  • Best score: 19
  • Best player score: 31
  • Position: #442 / 685
  • Number of attempts: 3
Reconstruct the Sentence - 1168 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: #205 / 350
  • Number of attempts: 17
Matrices Matlab #1
Twitter:

entered into 13 challenges

contributed 0 challenges