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 - 34012 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: #3582 / 7513
  • Number of attempts: 4
One number per line - 18903 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 21
  • Position: #2448 / 3904
  • Number of attempts: 2
V to the i - 4883 entries

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

  • Best score: 7
  • Best player score: 8
  • Position: #918 / 1914
  • Number of attempts: 1
From argument to object - 1566 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 / 471
  • Number of attempts: 4
Just the middle - 11616 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2556 / 4255
  • 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 - 5733 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 14
  • Position: #327 / 1279
  • Number of attempts: 8
Array transposition - 2481 entries

Transpose two arrays into one.

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

Put hyphens everywhere.

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

Right AND down.

  • Best score: 13
  • Best player score: 15
  • Position: #98 / 361
  • Number of attempts: 4
NBCU Weekly Challenge - Test - 264 entries

Just testing.

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

Help me put the newline.

  • Best score: 7
  • Best player score: 8
  • Position: #323 / 449
  • Number of attempts: 1
Sort the VimGolf challenges by popularity - 369 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 / 110
  • Number of attempts: 5
Stairs Indenting - 502 entries

Indent each line with <line number> whitespaces.

  • Best score: 12
  • Best player score: 13
  • Position: #52 / 202
  • Number of attempts: 3
switch variable - 5128 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 13
  • Position: #1166 / 1764
  • Number of attempts: 1
Simple text editing with Vim - 13626 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 / 3902
  • Number of attempts: 3
Philipp Aeschbach
Twitter:

entered into 16 challenges

contributed 0 challenges