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

V to the i - 4596 entries

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

  • Best score: 7
  • Best player score: 7
  • Position: #171 / 1837
  • Number of attempts: 3
Extract argument from function - 2186 entries

The aim is to see if you can do some refactoring very fast.

  • Best score: 13
  • Best player score: 13
  • Position: #112 / 721
  • Number of attempts: 7
ASCII box - 304 entries

Don't forget to fix typos!

  • Best score: 23
  • Best player score: 23
  • Position: #18 / 99
  • Number of attempts: 4
Mute the second method of this script - 427 entries

prepend a # infront of every line of the second method

  • Best score: 9
  • Best player score: 9
  • Position: #45 / 227
  • Number of attempts: 4
Sorting database text output - 194 entries

Sometimes it is nice to be able to quickly take column-formatted text output from the SQL command line and turn it into a list of useful data. In this case we want a unique, sorted list of the values from the second column combined into one comma-separated list. What is the fewest strokes you can do this in?

  • Best score: 24
  • Best player score: 24
  • Position: #22 / 75
  • Number of attempts: 2
I forgot quotes - 15639 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #105 / 4095
  • Number of attempts: 6
learn vim in short time - 212 entries

so happy to learn vim.because vim is awesome

  • Best score: 8
  • Best player score: 9
  • Position: #129 / 144
  • Number of attempts: 1
-a-b-c- - 3077 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 13
  • Position: #75 / 1099
  • Number of attempts: 4
Letter case trickery - 1515 entries

This file is in a downright esoteric format, consisting of hexadecimal numbers, non-hexadecimal keywords, and "Z" indicating end-of-line. Make the hexadecimal numbers lowercase.

  • Best score: 9
  • Best player score: 10
  • Position: #120 / 492
  • Number of attempts: 4
Darth Shuvalov
Twitter:

|_~(˘▾˘~) Monsieur JavaScript developer. @largescalejs_ru @jsunderhood https://t.co/5Sh3llKHEH

entered into 9 challenges

contributed 0 challenges