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 - 2169 entries

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

  • Best score: 16
  • Best player score: 27
  • Position: #214 / 393
  • Number of attempts: 7
Rural Post - 4595 entries

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

  • Best score: 9
  • Best player score: 16
  • Position: #791 / 1121
  • Number of attempts: 4
Satisfy the go linter - 2482 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: #435 / 494
  • Number of attempts: 3
Replace pattern with 1, 2, 3, ... on each line - 1158 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: #220 / 234
  • Number of attempts: 2
Simple, Practical, and Common - 33970 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: #7253 / 7503
  • Number of attempts: 2
One number per line - 18889 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 17
  • Position: #1325 / 3898
  • Number of attempts: 9
Add semicolons - 10943 entries

Simply add a semicolon at the end of each line

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

Create a box around a line.

  • Best score: 21
  • Best player score: 22
  • Position: #509 / 1898
  • Number of attempts: 9
Array propagate - 346 entries

Complete the array with the keys as part of the value

  • Best score: 23
  • Best player score: 33
  • Position: #102 / 123
  • Number of attempts: 1
Number Sort - 321 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 / 171
  • Number of attempts: 2
I forgot quotes - 16179 entries

Oops.

  • Best score: 10
  • Best player score: 16
  • Position: #2740 / 4218
  • Number of attempts: 5
switch variable - 5114 entries

how fast can you switch two variable ?

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

entered into 12 challenges

contributed 0 challenges