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

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

  • Best score: 10
  • Best player score: 10
  • Position: #173 / 516
  • Number of attempts: 11
Modernise code - 1410 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 34
  • Position: #53 / 326
  • Number of attempts: 17
One number per line - 18801 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 64
  • Position: #3863 / 3882
  • Number of attempts: 1
Add semicolons - 10899 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Position: #748 / 3078
  • Number of attempts: 3
From argument to object - 1524 entries

This task typifies those programmers endure while coding. This C-family pseudocode needs a function argument to be repurposed as an object call. Simply search and replace? Repeat a pattern of edits?

  • Best score: 17
  • Best player score: 17
  • Position: #151 / 463
  • Number of attempts: 15
Extract argument from function - 2372 entries

The aim is to see if you can do some refactoring very fast.

  • Best score: 13
  • Best player score: 13
  • Position: #265 / 757
  • Number of attempts: 11
Just the middle - 11509 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #1491 / 4218
  • Number of attempts: 6
Stairstep digits - 407 entries

Remove the evens. Double the odds.

  • Best score: 9
  • Best player score: 9
  • Position: #51 / 149
  • Number of attempts: 2
Align commas - 1097 entries

There are 15,000 aligning challenges on vimgolf.com, and they're all exactly the same. I hope this one is a little different.

  • Best score: 11
  • Best player score: 26
  • Position: #237 / 247
  • Number of attempts: 1
Change your calendar - 397 entries

Happy New Year!

  • Best score: 18
  • Best player score: 18
  • Position: #9 / 88
  • Number of attempts: 26
Saurabh
Twitter:

Android • iOS | Native • Hybrid | React Native • Ionic | Kotlin • Swift

entered into 10 challenges

contributed 0 challenges