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

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

  • Best score: 14
  • Best player score: 28
  • Position: #155 / 271
  • Number of attempts: 2
Copy punctuation - 655 entries

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

  • Best score: 19
  • Best player score: 39
  • Position: #93 / 158
  • Number of attempts: 4
months to html list items - 1108 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 25
  • Position: #116 / 300
  • Number of attempts: 3
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: 13
  • Position: #105 / 201
  • Number of attempts: 4
HS exam question - 1599 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 64
  • Position: #158 / 419
  • Number of attempts: 5
delete swap - 1818 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #333 / 567
  • Number of attempts: 6
hello-world-vimgolf - 2513 entries

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #316 / 717
  • Number of attempts: 4
Create a diamond comment - 337 entries

Encapsulate the text in a diamond pattern.

  • Best score: 27
  • Best player score: 60
  • Position: #59 / 75
  • Number of attempts: 4
simple replacements - 1833 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 26
  • Position: #286 / 396
  • Number of attempts: 4
Box it - 7962 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 23
  • Position: #815 / 1891
  • Number of attempts: 5
Alsa configuration - 513 entries

I'm tweaking my ~/.asoundrc file!

  • Best score: 22
  • Best player score: 36
  • Position: #115 / 128
  • Number of attempts: 3
Happy TvvO - 427 entries

Don’t forget the past, learn from it. Happy New Year.

  • Best score: 12
  • Best player score: 13
  • Position: #183 / 206
  • Number of attempts: 4
Neither Fizz nor Buzz - 257 entries

Not your regular increment macro! The gaps are tricky.

  • Best score: 13
  • Best player score: 33
  • Position: #98 / 104
  • Number of attempts: 4
replacing each line of a block selection - 3007 entries

replace each line's ../assets/js with /javascripts

  • Best score: 18
  • Best player score: 21
  • Position: #417 / 780
  • Number of attempts: 7
heog
Github:

entered into 14 challenges

contributed 0 challenges