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: #4104 / 7503
  • Number of attempts: 1
Swap values - 4703 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 15
  • Position: #802 / 1291
  • Number of attempts: 1
One number per line - 18889 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 23
  • Position: #3082 / 3898
  • Number of attempts: 2
Wget failed to download redirections - 232 entries

Output of a wget session, where 302 where not properly handled due to certificate problems, has been saved to a file. Keep the correct URLs to start again downloading.

  • Best score: 15
  • Best player score: 18
  • Position: #27 / 71
  • 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: #950 / 1910
  • Number of attempts: 2
Box it - 7998 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 25
  • Position: #1008 / 1898
  • Number of attempts: 1
Just the middle - 11590 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #1527 / 4246
  • Number of attempts: 7
Make HTML List - 1071 entries

Turn the comma separated list into an unordered html list.

  • Best score: 33
  • Best player score: 48
  • Position: #160 / 275
  • Number of attempts: 1
Vice versa - 8011 entries

Little role switching.

  • Best score: 12
  • Best player score: 12
  • Position: #8 / 2153
  • Number of attempts: 3
comments galore - 1079 entries

Basic comment reformatting

  • Best score: 10
  • Best player score: 10
  • Position: #54 / 431
  • Number of attempts: 4
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: #298 / 514
  • Number of attempts: 1
Restore order to the alphabet - 209 entries

The numbers are OK. The letters are wonky.

  • Best score: 12
  • Best player score: 26
  • Position: #58 / 73
  • Number of attempts: 1
Collect List - 4332 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 12
  • Position: #6 / 1196
  • Number of attempts: 2
Land of the Lost - 96 entries

Enter the tabs below the lyrics

  • Best score: 25
  • Best player score: 50
  • Position: #26 / 33
  • Number of attempts: 1
readability - 331 entries

Make the code readable by adding some spaces

  • Best score: 18
  • Best player score: 19
  • Position: #90 / 153
  • Number of attempts: 1
Space out the alphabet - 1690 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 19
  • Position: #236 / 454
  • Number of attempts: 3
Not enough Ps - 74 entries

Different type of code

  • Best score: 13
  • Best player score: 14
  • Position: #31 / 38
  • Number of attempts: 1
ASCII box - 365 entries

Don't forget to fix typos!

  • Best score: 23
  • Best player score: 26
  • Position: #61 / 110
  • Number of attempts: 4
Mute the second method of this script - 460 entries

prepend a # infront of every line of the second method

  • Best score: 8
  • Best player score: 9
  • Position: #15 / 242
  • Number of attempts: 2
Sorting database text output - 229 entries

Sometimes it is nice to be able to quickly take column-formatted text output from the SQL command line and turn it into a list of useful data. In this case we want a unique, sorted list of the values from the second column combined into one comma-separated list. What is the fewest strokes you can do this in?

  • Best score: 24
  • Best player score: 24
  • Position: #8 / 85
  • Number of attempts: 2
Happy TvvO - 438 entries

Don’t forget the past, learn from it. Happy New Year.

  • Best score: 12
  • Best player score: 12
  • Position: #20 / 210
  • Number of attempts: 2
I forgot quotes - 16179 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #29 / 4218
  • Number of attempts: 6
-a-b-c- - 3233 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 13
  • Position: #59 / 1143
  • Number of attempts: 2
A HAPPY NEW YEAR 2014 ! - 10748 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 14
  • Position: #2710 / 3711
  • Number of attempts: 2
replacing each line of a block selection - 3041 entries

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

  • Best score: 18
  • Best player score: 24
  • Position: #519 / 786
  • Number of attempts: 1
Gammelin Guillaume
Twitter:

#Web #Developper (#PHP, #GoLang, #JavaScript...) #Vim. Open source enthousiast.

entered into 25 challenges

contributed 0 challenges