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 - 1166 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: #112 / 192
  • Number of attempts: 2
months to html list items - 963 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 25
  • Position: #104 / 258
  • Number of attempts: 3
Remove line numbers - 703 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: #100 / 190
  • Number of attempts: 4
HS exam question - 1577 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 64
  • Position: #155 / 415
  • Number of attempts: 5
delete swap - 1773 entries

delete all swap

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

Simple number generation

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

Create a box around a line.

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

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

  • Best score: 12
  • Best player score: 13
  • Position: #183 / 205
  • 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 - 2998 entries

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

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

entered into 13 challenges

contributed 0 challenges