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 - 1298 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: #125 / 205
  • Number of attempts: 2
months to html list items - 1010 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 25
  • Position: #109 / 274
  • Number of attempts: 3
Remove line numbers - 736 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: #103 / 198
  • Number of attempts: 4
HS exam question - 1589 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 64
  • Position: #156 / 417
  • Number of attempts: 5
delete swap - 1786 entries

delete all swap

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

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #316 / 708
  • 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 - 1753 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 26
  • Position: #280 / 380
  • Number of attempts: 4
Box it - 7905 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 23
  • Position: #812 / 1876
  • 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 - 253 entries

Not your regular increment macro! The gaps are tricky.

  • Best score: 13
  • Best player score: 33
  • Position: #97 / 103
  • Number of attempts: 4
replacing each line of a block selection - 2999 entries

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

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

entered into 13 challenges

contributed 0 challenges