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 - 1563 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: #132 / 258
  • Number of attempts: 1
Rearrange array to one line - 720 entries

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

  • Best score: 13
  • Best player score: 25
  • Position: #122 / 175
  • Number of attempts: 1
Copy punctuation - 599 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: #78 / 149
  • Number of attempts: 1
Deleting text - 295 entries

Delete everything except some specific numbers.

  • Best score: 26
  • Best player score: 45
  • Position: #36 / 95
  • Number of attempts: 2
String decompression - 32 entries

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

  • Best score: 27
  • Best player score: 32
  • Position: #10 / 12
  • Number of attempts: 2
Quicksort - 2038 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: #261 / 452
  • Number of attempts: 4
Remove line numbers - 747 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: #122 / 200
  • Number of attempts: 1
Simple, Practical, and Common - 33791 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: #3130 / 7455
  • Number of attempts: 3
Swap values - 4647 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 15
  • Position: #983 / 1276
  • Number of attempts: 1
Add semicolons - 10899 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1781 / 3078
  • Number of attempts: 2
remove lines containing the word "reader" - 3614 entries

easy stuff

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

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

  • Best score: 12
  • Best player score: 28
  • Position: #757 / 886
  • 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 - 2240 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 / 681
  • Number of attempts: 3
Words in parens - 12975 entries

We should all ace this, right?

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

entered into 15 challenges

contributed 0 challenges