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 - 692 entries

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

  • Best score: 10
  • Best player score: 13
  • Position: #124 / 195
  • Number of attempts: 7
Modernise code - 507 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 39
  • Position: #54 / 117
  • Number of attempts: 8
HS Final exam vimgolf - 501 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 / 137
  • Number of attempts: 12
Simple, Practical, and Common - 32744 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: #2992 / 7235
  • Number of attempts: 5
Add semicolons - 10429 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1322 / 2954
  • Number of attempts: 4
Com(m)a Trouble - 3284 entries

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

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

Little role switching.

  • Best score: 12
  • Best player score: 12
  • Position: #533 / 2010
  • Number of attempts: 6
One to Ten - 2055 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: #543 / 629
  • Number of attempts: 4
Line under headers - 1852 entries

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

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

entered into 9 challenges

contributed 0 challenges