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 - 33990 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: 26
  • Position: #3580 / 7510
  • Number of attempts: 4
One number per line - 18900 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 21
  • Position: #2447 / 3903
  • Number of attempts: 2
V to the i - 4866 entries

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

  • Best score: 7
  • Best player score: 8
  • Position: #918 / 1913
  • Number of attempts: 1
From argument to object - 1553 entries

This task typifies those programmers endure while coding. This C-family pseudocode needs a function argument to be repurposed as an object call. Simply search and replace? Repeat a pattern of edits?

  • Best score: 17
  • Best player score: 18
  • Position: #227 / 470
  • Number of attempts: 4
Just the middle - 11613 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2556 / 4253
  • Number of attempts: 1
Missing Library and a Typo - 954 entries

I forgot to add a c library, please add it for me. Also I'm bad at typing so fix my typo too.

  • Best score: 14
  • Best player score: 18
  • Position: #139 / 223
  • Number of attempts: 3
Basic renumbering - 5732 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 14
  • Position: #326 / 1278
  • Number of attempts: 8
Array transposition - 2477 entries

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 27
  • Position: #329 / 460
  • Number of attempts: 1
-a-b-c- - 3240 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 13
  • Position: #33 / 1146
  • Number of attempts: 4
Count both ways - 1037 entries

Right AND down.

  • Best score: 13
  • Best player score: 15
  • Position: #96 / 359
  • Number of attempts: 4
NBCU Weekly Challenge - Test - 262 entries

Just testing.

  • Best score: 18
  • Best player score: 18
  • Position: #38 / 119
  • Number of attempts: 2
Where should I put the Newline? - 901 entries

Help me put the newline.

  • Best score: 7
  • Best player score: 8
  • Position: #322 / 447
  • Number of attempts: 1
Sort the VimGolf challenges by popularity - 362 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: #20 / 109
  • Number of attempts: 5
Stairs Indenting - 483 entries

Indent each line with <line number> whitespaces.

  • Best score: 12
  • Best player score: 13
  • Position: #51 / 200
  • Number of attempts: 3
switch variable - 5121 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 13
  • Position: #1165 / 1762
  • Number of attempts: 1
Simple text editing with Vim - 13606 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 14
  • Position: #1392 / 3898
  • Number of attempts: 3
Philipp Aeschbach
Twitter:

entered into 16 challenges

contributed 0 challenges