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 - 32904 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 / 7270
  • Number of attempts: 10
Swap values - 4440 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 12
  • Position: #365 / 1241
  • Number of attempts: 7
V to the i - 4639 entries

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

  • Best score: 7
  • Best player score: 8
  • Position: #1106 / 1856
  • Number of attempts: 2
Just the middle - 11136 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2075 / 4112
  • Number of attempts: 3
Basic renumbering - 5430 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 23
  • Position: #993 / 1227
  • Number of attempts: 2
JS notation to Immutable.js notation - 155 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: 35
  • Best player score: 38
  • Position: #26 / 59
  • Number of attempts: 3
Sorting a glossary - 115 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 / 74
  • Number of attempts: 2
comments galore - 970 entries

Basic comment reformatting

  • Best score: 10
  • Best player score: 11
  • Position: #318 / 410
  • Number of attempts: 2
Mirrored text - 162 entries

backward and forward, and long enough to be challenging

  • Best score: 14
  • Best player score: 16
  • Position: #38 / 69
  • Number of attempts: 4
lipsum lines - 247 entries

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

  • Best score: 28
  • Best player score: 35
  • Position: #67 / 89
  • Number of attempts: 4
Alsa configuration - 481 entries

I'm tweaking my ~/.asoundrc file!

  • Best score: 22
  • Best player score: 29
  • Position: #76 / 123
  • Number of attempts: 7
I forgot quotes - 15728 entries

Oops.

  • Best score: 10
  • Best player score: 18
  • Position: #3110 / 4114
  • Number of attempts: 1
replacing each line of a block selection - 2791 entries

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

  • Best score: 18
  • Best player score: 29
  • Position: #602 / 732
  • 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