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 - 1649 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: #139 / 272
  • Number of attempts: 1
Rearrange array to one line - 774 entries

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

  • Best score: 13
  • Best player score: 25
  • Position: #129 / 183
  • Number of attempts: 1
Copy punctuation - 671 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: #85 / 159
  • Number of attempts: 1
Deleting text - 325 entries

Delete everything except some specific numbers.

  • Best score: 26
  • Best player score: 45
  • Position: #38 / 101
  • Number of attempts: 2
String decompression - 37 entries

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

  • Best score: 27
  • Best player score: 32
  • Position: #11 / 13
  • Number of attempts: 2
Quicksort - 2061 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: #263 / 458
  • Number of attempts: 4
Remove line numbers - 752 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: #123 / 201
  • Number of attempts: 1
Simple, Practical, and Common - 33866 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: #3136 / 7474
  • Number of attempts: 3
Swap values - 4661 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 15
  • Position: #984 / 1282
  • Number of attempts: 1
Add semicolons - 10916 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1784 / 3085
  • Number of attempts: 2
remove lines containing the word "reader" - 3622 entries

easy stuff

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

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

  • Best score: 12
  • Best player score: 28
  • Position: #765 / 894
  • Number of attempts: 1
That hyphen - 2602 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 14
  • Position: #590 / 704
  • Number of attempts: 1
One to Ten - 2241 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 / 682
  • Number of attempts: 3
Words in parens - 12992 entries

We should all ace this, right?

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

entered into 15 challenges

contributed 0 challenges