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

Simple, Practical, and Common - 33970 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: 22
  • Position: #340 / 7503
  • Number of attempts: 10
Swap values - 4703 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 12
  • Position: #377 / 1291
  • Number of attempts: 7
V to the i - 4860 entries

Input is 99 V's. Output is 100 i's.

  • Best score: 7
  • Best player score: 8
  • Position: #1133 / 1910
  • Number of attempts: 2
Just the middle - 11590 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2116 / 4246
  • Number of attempts: 3
Basic renumbering - 5731 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 23
  • Position: #1034 / 1277
  • Number of attempts: 2
JS notation to Immutable.js notation - 195 entries

Now Immutable.js made its way into many frontends. This challenge consists of a typical refactoring that many of us are facing now.

  • Best score: 34
  • Best player score: 38
  • Position: #31 / 64
  • Number of attempts: 3
Sorting a glossary - 134 entries

Sort a glossary. Glossary head contains a header phrase ending with ':' and glossary body has multi line text indented with a tab.

  • Best score: 6
  • Best player score: 6
  • Position: #12 / 83
  • Number of attempts: 2
comments galore - 1079 entries

Basic comment reformatting

  • Best score: 10
  • Best player score: 11
  • Position: #335 / 431
  • Number of attempts: 2
Mirrored text - 199 entries

backward and forward, and long enough to be challenging

  • Best score: 14
  • Best player score: 16
  • Position: #42 / 74
  • Number of attempts: 4
lipsum lines - 296 entries

Convert a quoted block of text into strings in a list.

  • Best score: 28
  • Best player score: 35
  • Position: #73 / 96
  • Number of attempts: 4
Alsa configuration - 528 entries

I'm tweaking my ~/.asoundrc file!

  • Best score: 22
  • Best player score: 29
  • Position: #80 / 130
  • Number of attempts: 7
I forgot quotes - 16179 entries

Oops.

  • Best score: 10
  • Best player score: 18
  • Position: #3188 / 4218
  • Number of attempts: 1
replacing each line of a block selection - 3041 entries

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

  • Best score: 18
  • Best player score: 29
  • Position: #640 / 786
  • Number of attempts: 4
Sebastian Pardo
Twitter:

I study life histories of sharks and rays (for my PhD) and salmon (postdoc) and live in Musqueam, Squamish, and Tsleil-Waututh traditional territories.

entered into 13 challenges

contributed 0 challenges