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

Poorly indented Python comments - 1348 entries

Fix the alignment of some Python comments as quickly as possible.

  • Best score: 15
  • Best player score: 23
  • Position: #89 / 224
  • Number of attempts: 8
Put a newline after every 10 lines in vim - 1681 entries

Goal is to put a newline after every 10 lines in vim.

  • Best score: 10
  • Best player score: 11
  • Position: #61 / 565
  • Number of attempts: 3
Wikitext headings to markdown - 1029 entries

Convert the wikitext headings to markdown.

  • Best score: 20
  • Best player score: 25
  • Position: #112 / 213
  • Number of attempts: 2
Simple, Practical, and Common - 33958 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: 22
  • Position: #1353 / 7498
  • Number of attempts: 12
prepend * to every non-blank line - 6388 entries

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

  • Best score: 10
  • Best player score: 14
  • Position: #865 / 1559
  • Number of attempts: 2
One number per line - 18889 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 16
  • Position: #896 / 3898
  • Number of attempts: 5
Add semicolons - 10932 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1010 / 3091
  • Number of attempts: 2
remove lines containing the word "reader" - 3643 entries

easy stuff

  • Best score: 9
  • Best player score: 9
  • Position: #37 / 1181
  • Number of attempts: 7
Cool or not? - 852 entries

abc trying to be cool or not...

  • Best score: 15
  • Best player score: 16
  • Position: #86 / 234
  • Number of attempts: 4
html paragraph to table - 634 entries

reformat html paragraph to table

  • Best score: 48
  • Best player score: 64
  • Position: #84 / 130
  • Number of attempts: 3
Copy three lines - 2909 entries

If the site is up (by some miracle), make the text under every header identical.

  • Best score: 13
  • Best player score: 37
  • Position: #622 / 644
  • Number of attempts: 1
Just the middle - 11572 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2637 / 4240
  • Number of attempts: 2
ninja substitution - 1436 entries

How can you reuse a previous substitution ?

  • Best score: 14
  • Best player score: 16
  • Position: #151 / 270
  • Number of attempts: 6
Vice versa - 7995 entries

Little role switching.

  • Best score: 12
  • Best player score: 15
  • Position: #1093 / 2151
  • Number of attempts: 3
Change part of a function name in multiple occurrences - 680 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: 20
  • Position: #187 / 212
  • Number of attempts: 1
Delete to the end of the current line - 865 entries

Delete to the end of the current line, but keep the character under the cursor.

  • Best score: 5
  • Best player score: 6
  • Position: #296 / 415
  • Number of attempts: 1
Put the months in order - 998 entries

Our contractor thought that months should be in alphabetical order. Put them in calendar order please.

  • Best score: 20
  • Best player score: 41
  • Position: #88 / 166
  • Number of attempts: 3
convert yml into java pojo field - 873 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: 40
  • Position: #216 / 231
  • Number of attempts: 1
I forgot quotes - 16176 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #1005 / 4216
  • Number of attempts: 10
A HAPPY NEW YEAR 2014 ! - 10743 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #2323 / 3710
  • Number of attempts: 1
Words in parens - 13024 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 16
  • Position: #2454 / 3983
  • Number of attempts: 1
rg thomas
Twitter:

entered into 21 challenges

contributed 0 challenges