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

swap number pairs - 2125 entries

Swap the numbers in a bunch of 2-element arrays.

  • Best score: 16
  • Best player score: 27
  • Position: #210 / 386
  • Number of attempts: 7
Rural Post - 4563 entries

Simple challenge to remove all but the post code on each line

  • Best score: 9
  • Best player score: 16
  • Position: #784 / 1113
  • Number of attempts: 4
Satisfy the go linter - 2448 entries

You just came up with this briliant go vars package. But dang, you forgot to add comments to the exported variables. Can you add a comment over each variable with a TODO-placeholder?

  • Best score: 20
  • Best player score: 36
  • Position: #428 / 484
  • Number of attempts: 3
Replace pattern with 1, 2, 3, ... on each line - 1151 entries

For each line replace a search pattern (in this case $) with numbers starting at 1 and then increasing by 1 for each replaced match. a$b$c$ -> a0b1c2

  • Best score: 21
  • Best player score: 54
  • Position: #219 / 233
  • Number of attempts: 2
Simple, Practical, and Common - 33757 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: 42
  • Position: #7204 / 7450
  • Number of attempts: 2
One number per line - 18780 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 17
  • Position: #1319 / 3877
  • Number of attempts: 9
Add semicolons - 10889 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Position: #264 / 3076
  • Number of attempts: 12
Box it - 7939 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 22
  • Position: #507 / 1885
  • Number of attempts: 9
Array propagate - 339 entries

Complete the array with the keys as part of the value

  • Best score: 23
  • Best player score: 33
  • Position: #99 / 120
  • Number of attempts: 1
Number Sort - 317 entries

sort the list of newline-separated numbers incrementally. Numbers are in the range 1 to 1000, with 500 missing

  • Best score: 9
  • Best player score: 9
  • Position: #117 / 169
  • Number of attempts: 2
I forgot quotes - 16051 entries

Oops.

  • Best score: 10
  • Best player score: 16
  • Position: #2727 / 4194
  • Number of attempts: 5
switch variable - 5085 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 19
  • Position: #1664 / 1750
  • Number of attempts: 2
Doemae
Twitter:

entered into 12 challenges

contributed 0 challenges