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 - 33616 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 / 7420
  • Number of attempts: 10
Swap values - 4616 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 12
  • Position: #373 / 1268
  • Number of attempts: 7
V to the i - 4802 entries

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

  • Best score: 7
  • Best player score: 8
  • Position: #1124 / 1893
  • Number of attempts: 2
Just the middle - 11454 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2105 / 4197
  • Number of attempts: 3
Basic renumbering - 5648 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 23
  • Position: #1023 / 1264
  • Number of attempts: 2
JS notation to Immutable.js notation - 186 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: #30 / 63
  • Number of attempts: 3
Sorting a glossary - 131 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 / 81
  • Number of attempts: 2
comments galore - 1045 entries

Basic comment reformatting

  • Best score: 10
  • Best player score: 11
  • Position: #330 / 424
  • Number of attempts: 2
Mirrored text - 177 entries

backward and forward, and long enough to be challenging

  • Best score: 14
  • Best player score: 16
  • Position: #40 / 71
  • Number of attempts: 4
lipsum lines - 278 entries

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

  • Best score: 28
  • Best player score: 35
  • Position: #72 / 95
  • Number of attempts: 4
Alsa configuration - 513 entries

I'm tweaking my ~/.asoundrc file!

  • Best score: 22
  • Best player score: 29
  • Position: #79 / 128
  • Number of attempts: 7
I forgot quotes - 15983 entries

Oops.

  • Best score: 10
  • Best player score: 18
  • Position: #3160 / 4180
  • Number of attempts: 1
replacing each line of a block selection - 2999 entries

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

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