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

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

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

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

  • Best score: 9
  • Best player score: 16
  • Position: #787 / 1117
  • Number of attempts: 4
Satisfy the go linter - 2476 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: #434 / 492
  • 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 - 33929 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: #7241 / 7489
  • Number of attempts: 2
One number per line - 18840 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 17
  • Position: #1322 / 3893
  • Number of attempts: 9
Add semicolons - 10923 entries

Simply add a semicolon at the end of each line

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

Create a box around a line.

  • Best score: 21
  • Best player score: 22
  • Position: #509 / 1895
  • 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 - 16127 entries

Oops.

  • Best score: 10
  • Best player score: 16
  • Position: #2735 / 4208
  • Number of attempts: 5
switch variable - 5101 entries

how fast can you switch two variable ?

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

entered into 12 challenges

contributed 0 challenges