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 - 4641 entries

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

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

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

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

Don't forget to fix typos!

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

prepend a # infront of every line of the second method

  • Best score: 9
  • Best player score: 9
  • Position: #45 / 233
  • Number of attempts: 4
Sorting database text output - 206 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 / 79
  • Number of attempts: 2
I forgot quotes - 15740 entries

Oops.

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

so happy to learn vim.because vim is awesome

  • Best score: 8
  • Best player score: 9
  • Position: #134 / 150
  • Number of attempts: 1
-a-b-c- - 3118 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 13
  • Position: #75 / 1112
  • Number of attempts: 4
Letter case trickery - 1547 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: #122 / 498
  • Number of attempts: 4
Darth Shuvalov
Twitter:

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

entered into 9 challenges

contributed 0 challenges