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

Paste a column after a column - 2547 entries

This task is very common while using multi-cursor. What is the elegant vim way ?

  • Best score: 14
  • Best player score: 18
  • Position: #240 / 556
  • Number of attempts: 7
delete swap - 1787 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #195 / 556
  • Number of attempts: 4
Simple, Practical, and Common - 33703 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: 24
  • Position: #2918 / 7438
  • Number of attempts: 7
Hogwarts Email Sorting - 928 entries

Given a list of emails, get the students full name and their associated house.

  • Best score: 20
  • Best player score: 22
  • Position: #126 / 262
  • Number of attempts: 4
Swap values - 4639 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 11
  • Position: #136 / 1273
  • Number of attempts: 10
One number per line - 18751 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 14
  • Position: #165 / 3869
  • Number of attempts: 9
Aliases for cd - 879 entries

Create these beautiful aliases with as few strokes as possible. Are you up for the challenge?

  • Best score: 30
  • Best player score: 43
  • Position: #66 / 155
  • Number of attempts: 4
Add semicolons - 10877 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1258 / 3070
  • Number of attempts: 4
Com(m)a Trouble - 3853 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #92 / 871
  • Number of attempts: 8
Search and Replace 0 - 5004 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #635 / 1630
  • Number of attempts: 5
Just the middle - 11477 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2365 / 4206
  • Number of attempts: 3
Collect List - 4305 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 14
  • Position: #667 / 1191
  • Number of attempts: 1
I forgot quotes - 16014 entries

Oops.

  • Best score: 10
  • Best player score: 15
  • Position: #2175 / 4188
  • Number of attempts: 5
Sushrut Shirole
Twitter:

entered into 13 challenges

contributed 0 challenges