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 - 33353 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 / 7358
  • Number of attempts: 10
Swap values - 4535 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 12
  • Position: #371 / 1255
  • Number of attempts: 7
V to the i - 4743 entries

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

  • Best score: 7
  • Best player score: 8
  • Position: #1118 / 1878
  • Number of attempts: 2
Just the middle - 11346 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2099 / 4160
  • Number of attempts: 3
Basic renumbering - 5584 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 23
  • Position: #1016 / 1257
  • Number of attempts: 2
JS notation to Immutable.js notation - 161 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: #27 / 60
  • Number of attempts: 3
Sorting a glossary - 118 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 / 76
  • Number of attempts: 2
comments galore - 998 entries

Basic comment reformatting

  • Best score: 10
  • Best player score: 11
  • Position: #324 / 418
  • Number of attempts: 2
Mirrored text - 163 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 - 251 entries

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

  • Best score: 28
  • Best player score: 35
  • Position: #68 / 91
  • Number of attempts: 4
Alsa configuration - 488 entries

I'm tweaking my ~/.asoundrc file!

  • Best score: 22
  • Best player score: 29
  • Position: #77 / 124
  • Number of attempts: 7
I forgot quotes - 15922 entries

Oops.

  • Best score: 10
  • Best player score: 18
  • Position: #3147 / 4159
  • Number of attempts: 1
replacing each line of a block selection - 2925 entries

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

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