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

Inverting Lines - 1274 entries

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

  • Best score: 10
  • Best player score: 13
  • Position: #222 / 354
  • Number of attempts: 7
Modernise code - 815 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 39
  • Position: #78 / 187
  • Number of attempts: 8
HS Final exam vimgolf - 647 entries

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

  • Best score: 21
  • Best player score: 21
  • Position: #19 / 173
  • Number of attempts: 12
Simple, Practical, and Common - 32881 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: 24
  • Position: #3008 / 7266
  • Number of attempts: 5
Add semicolons - 10527 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1330 / 2986
  • Number of attempts: 4
Com(m)a Trouble - 3369 entries

Someone was real stupid when placing his commas. Can you fix it?

  • Best score: 12
  • Best player score: 12
  • Position: #102 / 758
  • Number of attempts: 7
Vice versa - 7508 entries

Little role switching.

  • Best score: 12
  • Best player score: 12
  • Position: #533 / 2038
  • Number of attempts: 6
One to Ten - 2091 entries

Generate the sequence of numbers from 1 to 10, one number per line. Inspired by this Reddit thread: https://redd.it/ak4it2

  • Best score: 12
  • Best player score: 21
  • Position: #554 / 640
  • Number of attempts: 4
Line under headers - 1911 entries

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

  • Best score: 24
  • Best player score: 30
  • Position: #268 / 470
  • Number of attempts: 6
Lee Kian Tat Ken
Twitter:

entered into 9 challenges

contributed 0 challenges