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

Order and join - 811 entries

There's something special about the input order.

  • Best score: 10
  • Best player score: 14
  • Number of attempts: 3
Array propagate - 264 entries

Complete the array with the keys as part of the value

  • Best score: 23
  • Best player score: 26
  • Number of attempts: 3
Just the middle - 10467 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 4
I forgot quotes - 14516 entries

Oops.

  • Best score: 10
  • Best player score: 14
  • Number of attempts: 5
Interactive git rebase changing commands - 155 entries

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

  • Best score: 15
  • Best player score: 15
  • Number of attempts: 6
Refactor typescript arrow function type - 213 entries

Make arrow function type less verbose and easier to read

  • Best score: 20
  • Best player score: 28
  • Number of attempts: 2
remove lines containing the word "reader" - 2952 entries

easy stuff

  • Best score: 9
  • Best player score: 10
  • Number of attempts: 1
-a-b-c- - 2906 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 19
  • Number of attempts: 2
Search and Replace 0 - 4446 entries

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

  • Best score: 12
  • Best player score: 14
  • Number of attempts: 4
convert yml into java pojo field - 781 entries

How fast vim can create fields for java pojo i.e class declaration referring to a (simple) yml file

  • Best score: 29
  • Best player score: 32
  • Number of attempts: 2
prepend * to every non-blank line - 3468 entries

Prepend an asterisk to every non-blank line in the input file.

  • Best score: 10
  • Best player score: 12
  • Number of attempts: 3
Back to the roots - 38 entries

Johnny has a file with more integers. He wants to change each number with its square root. Can you help him?

  • Best score: 23
  • Best player score: 31
  • Number of attempts: 1
Capitalize the Names - 125 entries

I want to capitalize the names in quotes, but just the people's names, not the file names.

  • Best score: 21
  • Best player score: 32
  • Number of attempts: 2
Change part of a function name in multiple occurrences - 558 entries

Change the middle part of the function name in multiple places, preferably using the next and dot commands.

  • Best score: 14
  • Best player score: 15
  • Number of attempts: 1
Words in parens - 12103 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 18
  • Number of attempts: 2
Simple, Practical, and Common - 30443 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: 32
  • Number of attempts: 2
Com(m)a Trouble - 2842 entries

Someone was real stupid when placing his commas. Can you fix it?

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

Just give me the numbers.

  • Best score: 14
  • Best player score: 22
  • Number of attempts: 4
Box it - 6390 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 24
  • Number of attempts: 5
From argument to object - 1221 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: 2
Todo list specification - 319 entries

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

  • Best score: 37
  • Best player score: 39
  • Number of attempts: 4
Team names - 1642 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 16
  • Number of attempts: 8
Mike Harris
Twitter:

Helping make beautiful, personalised children's books as tech lead with @wonderbly. Previously @royalacademy among others.

entered into 22 challenges

contributed 0 challenges