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

Plotting some variables in python - 628 entries

4 sets of (x,y) variables to plot. Just increment the numbers! Well, let's change the colors of the lines as well. Oh and we meant to plot the absolute values of course.

  • Best score: 34
  • Best player score: 35
  • Position: #30 / 127
  • Number of attempts: 7
Simple, Practical, and Common - 32778 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: #662 / 7242
  • Number of attempts: 1
V to the i - 4617 entries

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

  • Best score: 7
  • Best player score: 7
  • Position: #163 / 1847
  • Number of attempts: 1
Remember VimGolf Rules ! - 225 entries

Rules, ... and don't forget !

  • Best score: 7
  • Best player score: 7
  • Position: #12 / 123
  • Number of attempts: 1
Forgot to follow the naming convention... - 25 entries

Rename everything like MY_VAR_SOMETHING to MyVarSomething.

  • Best score: 32
  • Best player score: 35
  • Position: #7 / 13
  • Number of attempts: 1
Space out the alphabet - 1563 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 17
  • Position: #135 / 427
  • Number of attempts: 1
Mute the second method of this script - 430 entries

prepend a # infront of every line of the second method

  • Best score: 9
  • Best player score: 9
  • Position: #24 / 229
  • Number of attempts: 1
Sorting database text output - 203 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: #12 / 77
  • Number of attempts: 1
I forgot quotes - 15668 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #97 / 4099
  • Number of attempts: 1
learn vim in short time - 212 entries

so happy to learn vim.because vim is awesome

  • Best score: 8
  • Best player score: 8
  • Position: #65 / 144
  • Number of attempts: 1
Piphilology - 124 entries

Piphilology comprises the creation and use of mnemonic techniques to remember a span of digits of the mathematical constant π. http://en.wikipedia.org/wiki/Piphilology

  • Best score: 29
  • Best player score: 39
  • Position: #42 / 49
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10515 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #633 / 3630
  • Number of attempts: 1
Sort the VimGolf challenges by popularity - 330 entries

"Sort by popularity" is a good order to play the challenges. Not perfect, but you could do a lot worse. ;) Input is a sample copy-pasted from vimgolf.com. Some of the challenge names have digits that will get in your way, so read ":help :sort" for hints on sorting with a regex. When you're done, try your solution on the full list!

  • Best score: 15
  • Best player score: 15
  • Position: #22 / 100
  • Number of attempts: 1
esquifit
Twitter:

entered into 13 challenges

contributed 0 challenges