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

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

  • Best score: 16
  • Best player score: 27
  • Position: #215 / 394
  • Number of attempts: 7
Rural Post - 4598 entries

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

  • Best score: 9
  • Best player score: 16
  • Position: #793 / 1123
  • Number of attempts: 4
Satisfy the go linter - 2485 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: #436 / 495
  • Number of attempts: 3
Replace pattern with 1, 2, 3, ... on each line - 1161 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: #221 / 235
  • Number of attempts: 2
Simple, Practical, and Common - 33990 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: #7260 / 7510
  • Number of attempts: 2
One number per line - 18900 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 17
  • Position: #1326 / 3903
  • Number of attempts: 9
Add semicolons - 10956 entries

Simply add a semicolon at the end of each line

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

Create a box around a line.

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

Complete the array with the keys as part of the value

  • Best score: 23
  • Best player score: 33
  • Position: #103 / 124
  • Number of attempts: 1
Number Sort - 322 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 / 172
  • Number of attempts: 2
I forgot quotes - 16187 entries

Oops.

  • Best score: 10
  • Best player score: 16
  • Position: #2743 / 4222
  • Number of attempts: 5
switch variable - 5121 entries

how fast can you switch two variable ?

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

entered into 12 challenges

contributed 0 challenges