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

Rearrange array to single level - 1092 entries

The goal is to flatten the array into a single list and remove any empty elements.

  • Best score: 14
  • Best player score: 26
  • Position: #92 / 184
  • Number of attempts: 1
Rearrange array to one line - 521 entries

Rearrange the array content on only one line, and remove trailing commas

  • Best score: 13
  • Best player score: 25
  • Position: #89 / 129
  • Number of attempts: 1
Copy punctuation - 419 entries

I want to copy the last line’s brackets, quotes, and commas to each line. How?

  • Best score: 19
  • Best player score: 36
  • Position: #57 / 106
  • Number of attempts: 1
Deleting text - 217 entries

Delete everything except some specific numbers.

  • Best score: 26
  • Best player score: 45
  • Position: #30 / 73
  • Number of attempts: 2
String decompression - 27 entries

3a4b2c => aaabbbbcc. Start a new line when you exceed 79 columns.

  • Best score: 27
  • Best player score: 32
  • Position: #9 / 10
  • Number of attempts: 2
Quicksort - 1875 entries

We need the numbers in the first row sorted as quickly as possible! Be careful not to disturb the data below the divider though: that must remain unchanged.

  • Best score: 6
  • Best player score: 24
  • Position: #246 / 411
  • Number of attempts: 4
Remove line numbers - 694 entries

From http://web.archive.org/web/20140831121704/http://dirac.org/linux/gdb/02a-Memory_Layout_And_The_Stack.php#investigatingthestackwithgdb.

  • Best score: 9
  • Best player score: 16
  • Position: #114 / 189
  • Number of attempts: 1
Simple, Practical, and Common - 33571 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: #3115 / 7405
  • Number of attempts: 3
Swap values - 4609 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 15
  • Position: #978 / 1266
  • Number of attempts: 1
Add semicolons - 10845 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1776 / 3060
  • Number of attempts: 2
remove lines containing the word "reader" - 3574 entries

easy stuff

  • Best score: 9
  • Best player score: 9
  • Position: #505 / 1158
  • Number of attempts: 3
Com(m)a Trouble - 3780 entries

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

  • Best score: 12
  • Best player score: 28
  • Position: #729 / 855
  • Number of attempts: 1
That hyphen - 2595 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 14
  • Position: #590 / 701
  • Number of attempts: 1
One to Ten - 2209 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: 12
  • Position: #364 / 669
  • Number of attempts: 3
Words in parens - 12928 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 13
  • Position: #19 / 3960
  • Number of attempts: 5
NotWearingPants
Github:

entered into 15 challenges

contributed 0 challenges