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

Simple, Practical, and Common - 33970 entries

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.

  • Best score: 22
  • Best player score: 28
  • Position: #4479 / 7503
  • Number of attempts: 3
Swap values - 4703 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 14
  • Position: #782 / 1291
  • Number of attempts: 2
One number per line - 18889 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 21
  • Position: #2551 / 3898
  • Number of attempts: 2
V to the i - 4860 entries

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

  • Best score: 7
  • Best player score: 8
  • Position: #1428 / 1910
  • Number of attempts: 1
Applying same text modification in several lines - 2927 entries

Remove identical text at the beginning of several lines and the closing parenthesis.

  • Best score: 12
  • Best player score: 15
  • Position: #543 / 865
  • Number of attempts: 1
Add semicolons - 10943 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 15
  • Position: #2299 / 3093
  • Number of attempts: 2
Bad Copy Syntax - 2079 entries

Copy should be from right to left, but sometimes you type it wrong.

  • Best score: 18
  • Best player score: 23
  • Position: #355 / 541
  • Number of attempts: 1
remove lines containing the word "reader" - 3645 entries

easy stuff

  • Best score: 9
  • Best player score: 10
  • Position: #702 / 1182
  • Number of attempts: 2
Just the middle - 11590 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 9
  • Position: #3634 / 4246
  • Number of attempts: 1
Vice versa - 8011 entries

Little role switching.

  • Best score: 12
  • Best player score: 16
  • Position: #1411 / 2153
  • Number of attempts: 2
Line under headers - 2093 entries

Put a line under each header, and remove the other markdown formatting.

  • Best score: 24
  • Best player score: 31
  • Position: #306 / 514
  • Number of attempts: 2
Collect List - 4332 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 17
  • Position: #1004 / 1196
  • Number of attempts: 2
I forgot quotes - 16179 entries

Oops.

  • Best score: 10
  • Best player score: 16
  • Position: #2713 / 4218
  • Number of attempts: 1
-a-b-c- - 3233 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 15
  • Position: #722 / 1143
  • Number of attempts: 1
remove dupes from array - 1362 entries

given a random string that contains a ruby-esque array, make sure that there are no duplicate elements

  • Best score: 17
  • Best player score: 23
  • Position: #212 / 339
  • Number of attempts: 3
Simple text editing with Vim - 13526 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #1851 / 3879
  • Number of attempts: 1
Minyi Zhong
Twitter:

entered into 16 challenges

contributed 0 challenges