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

Array transposition - 1770 entries

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 27
  • Number of attempts: 1
Simple, Practical, and Common - 27235 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
  • Number of attempts: 4
One number per line - 14452 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 21
  • Number of attempts: 2
From argument to object - 1135 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
  • Number of attempts: 4
NBCU Weekly Challenge - Test - 221 entries

Just testing.

  • Best score: 18
  • Best player score: 18
  • Number of attempts: 2
Just the middle - 9769 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 1
switch variable - 4453 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 13
  • Number of attempts: 1
V to the i - 4162 entries

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

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 1
Simple text editing with Vim - 10708 entries

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

  • Best score: 13
  • Best player score: 14
  • Number of attempts: 3
Where should I put the Newline? - 812 entries

Help me put the newline.

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 1
Missing Library and a Typo - 742 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: 15
  • Best player score: 18
  • Number of attempts: 3
-a-b-c- - 2732 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 13
  • Number of attempts: 4
Sort the VimGolf challenges by popularity - 274 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
  • Number of attempts: 5
Basic renumbering - 4854 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 14
  • Number of attempts: 8
Stairs Indenting - 360 entries

Indent each line with <line number> whitespaces.

  • Best score: 12
  • Best player score: 13
  • Number of attempts: 3
Count both ways - 899 entries

Right AND down.

  • Best score: 13
  • Best player score: 15
  • Number of attempts: 4
Philipp Aeschbach
Twitter:

entered into 16 challenges

contributed 0 challenges