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

Modernise code - 1331 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 124
  • Position: #298 / 306
  • Number of attempts: 1
swap number pairs - 2002 entries

Swap the numbers in a bunch of 2-element arrays.

  • Best score: 16
  • Best player score: 40
  • Position: #308 / 369
  • Number of attempts: 2
HS Final exam vimgolf - 864 entries

Change the initial file to a single line containing all names comma-separated with numbers inside parentheses.

  • Best score: 21
  • Best player score: 66
  • Position: #223 / 227
  • Number of attempts: 1
Rural Post - 4351 entries

Simple challenge to remove all but the post code on each line

  • Best score: 9
  • Best player score: 23
  • Position: #871 / 1066
  • Number of attempts: 3
prepend * to every non-blank line - 6201 entries

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

  • Best score: 10
  • Best player score: 38
  • Position: #1497 / 1514
  • Number of attempts: 1
One number per line - 18613 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 25
  • Position: #3357 / 3841
  • Number of attempts: 1
V to the i - 4743 entries

Input is 99 V's. Output is 100 i's.

  • Best score: 7
  • Best player score: 10
  • Position: #1771 / 1878
  • Number of attempts: 2
Add string initializers to an enum - 862 entries

Change Typescript enum so that it has string initializers.

  • Best score: 21
  • Best player score: 49
  • Position: #249 / 254
  • Number of attempts: 1
Add semicolons - 10785 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 35
  • Position: #2990 / 3042
  • Number of attempts: 1
remove lines containing the word "reader" - 3528 entries

easy stuff

  • Best score: 9
  • Best player score: 44
  • Position: #1140 / 1142
  • Number of attempts: 1
Box it - 7818 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 46
  • Position: #1749 / 1861
  • Number of attempts: 1
Copy three lines - 2839 entries

If the site is up (by some miracle), make the text under every header identical.

  • Best score: 13
  • Best player score: 39
  • Position: #619 / 634
  • Number of attempts: 2
Just the middle - 11346 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 24
  • Position: #4143 / 4160
  • Number of attempts: 1
ninja substitution - 1372 entries

How can you reuse a previous substitution ?

  • Best score: 14
  • Best player score: 97
  • Position: #260 / 261
  • Number of attempts: 1
Collect List - 4261 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 35
  • Position: #1173 / 1185
  • Number of attempts: 1
I forgot quotes - 15922 entries

Oops.

  • Best score: 10
  • Best player score: 38
  • Position: #4127 / 4159
  • Number of attempts: 1
switch variable - 5028 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 17
  • Position: #1618 / 1734
  • Number of attempts: 1
kijete3127
Twitter:

entered into 17 challenges

contributed 0 challenges