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

Python Hello World! Reformatting - 822 entries

A novice Python using prints Hello World! and a pro shows him different way. Using vim to get into pro style from novice, win the challenge.

  • Best score: 39
  • Best player score: 41
  • Number of attempts: 5
Todo list specification - 284 entries

The every item on the todo list must be done today. Modify the list to reflect that.

  • Best score: 37
  • Best player score: 37
  • Number of attempts: 2
multiple cursor alternative - 964 entries

from: https://www.reddit.com/r/vim/comments/6w5pfa/crosspost_from_remacs_how_would_you_do_this_in_vim/

  • Best score: 19
  • Best player score: 20
  • Number of attempts: 4
Simple, Practical, and Common - 22205 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: 2
  • Best player score: 22
  • Number of attempts: 8
Fix the XML - 837 entries

The challenge consists in having a valid xml from an incomplete source.

  • Best score: 18
  • Best player score: 18
  • Number of attempts: 8
replacing each line of a block selection - 2437 entries

replace each line's ../assets/js with /javascripts

  • Best score: 17
  • Best player score: 18
  • Number of attempts: 8
Vice versa - 5552 entries

Little role switching.

  • Best score: 2
  • Best player score: 12
  • Number of attempts: 6
Swap values - 3272 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 5
V to the i - 3653 entries

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

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 2
switch variable - 4180 entries

how fast can you switch two variable ?

  • Best score: 3
  • Best player score: 11
  • Number of attempts: 4
Paragraph sort - 305 entries

My large herbivorous mammals, Vim commands, and POSIX utilities need to be sorted separately.

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 4
Collect List - 3246 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 3
Words in parens - 10552 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 1
Interactive git rebase changing commands - 142 entries

How to change the action of some commits in git rebase dialog.

  • Best score: 15
  • Best player score: 15
  • Number of attempts: 2
Switch function arguments - 1795 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 7
Separate the lines - 125 entries

Every other line is mixed up. Separate them into their original texts.

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 3
Search and Replace 0 - 3899 entries

Replace every instance of 'aaa' with 'xaaax'.

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 3
Missing Library and a Typo - 638 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: 15
  • Number of attempts: 6
Just the middle - 8676 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 2
Wrap text in quotes - 276 entries

All the blocks of text should be wrapped in quotation marks.

  • Best score: 16
  • Best player score: 16
  • Number of attempts: 5
Adam's challenge - 684 entries

Change both normal to bold and 4 by 2. Adam Wathan challenge this on twitter . He did it in 11 keystrokes on Sublime.

  • Best score: 18
  • Best player score: 18
  • Number of attempts: 4
Simple text editing with Vim - 10065 entries

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

  • Best score: 13
  • Best player score: 13
  • Number of attempts: 4
Create a table - 223 entries

Convert the given input into a formatted table

  • Best score: 16
  • Best player score: 16
  • Number of attempts: 2
Every other line - 1905 entries

AaAaAaA

  • Best score: 12
  • Best player score: 13
  • Number of attempts: 5
One number per line - 11132 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 6
Un"finnish"ed Work - 99 entries

Replace å by a, ä by a and ö by o.

  • Best score: 14
  • Best player score: 15
  • Number of attempts: 2
I forgot quotes - 10631 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 5
Array transposition - 1387 entries

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 17
  • Number of attempts: 10
From argument to object - 1025 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: 17
  • Number of attempts: 4
Darren Weston
Twitter:

entered into 29 challenges

contributed 0 challenges