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

Put a cross in the square - 210 entries

Put a cross in the square

  • Best score: 20
  • Best player score: 23
  • Position: #39 / 87
  • Number of attempts: 2
swap number pairs - 2023 entries

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

  • Best score: 16
  • Best player score: 27
  • Position: #200 / 373
  • Number of attempts: 2
HS Final exam vimgolf - 892 entries

Change the initial file to a single line containing all names comma-separated with numbers inside parentheses.

  • Best score: 21
  • Best player score: 37
  • Position: #177 / 234
  • Number of attempts: 3
Rural Post - 4427 entries

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

  • Best score: 9
  • Best player score: 10
  • Position: #381 / 1086
  • Number of attempts: 2
Satisfy the go linter - 2360 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: 28
  • Position: #336 / 465
  • Number of attempts: 2
Multiline to Single Line - 680 entries

Convert a multiline, indented file to a single line with no whitespace

  • Best score: 5
  • Best player score: 5
  • Position: #93 / 298
  • Number of attempts: 3
Simple, Practical, and Common - 33483 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: 24
  • Position: #3089 / 7384
  • Number of attempts: 4
prepend * to every non-blank line - 6254 entries

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

  • Best score: 10
  • Best player score: 18
  • Position: #1174 / 1530
  • Number of attempts: 3
One number per line - 18673 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 19
  • Position: #1993 / 3852
  • Number of attempts: 5
Add semicolons - 10831 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1648 / 3055
  • Number of attempts: 2
Team names - 1812 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 17
  • Position: #318 / 585
  • Number of attempts: 6
Learn some german verbs - 532 entries

The list needs to be structured so we can print in verbatim and feel ok about how it looks.

  • Best score: 21
  • Best player score: 26
  • Position: #77 / 132
  • Number of attempts: 3
C Reformatting - 689 entries

You may use Visual mode... or not. #uppercase

  • Best score: 30
  • Best player score: 73
  • Position: #147 / 162
  • Number of attempts: 3
change parenthesis - 287 entries

change the pair of braces into a pair of parentheses

  • Best score: 9
  • Best player score: 10
  • Position: #138 / 160
  • Number of attempts: 1
Remove quotes after first field - 367 entries

Remove the quotes around each field except for the first field.

  • Best score: 16
  • Best player score: 26
  • Position: #81 / 90
  • Number of attempts: 4
Put the months in order - 972 entries

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

  • Best score: 20
  • Best player score: 52
  • Position: #132 / 161
  • Number of attempts: 3
Fix the XML - 1000 entries

The challenge consists in having a valid xml from an incomplete source.

  • Best score: 18
  • Best player score: 125
  • Position: #287 / 287
  • Number of attempts: 1
I forgot quotes - 15946 entries

Oops.

  • Best score: 10
  • Best player score: 14
  • Position: #2004 / 4166
  • Number of attempts: 1
Count both ways - 1006 entries

Right AND down.

  • Best score: 13
  • Best player score: 16
  • Position: #272 / 352
  • Number of attempts: 1
Do you demand a shrubbery? - 1136 entries

Use :redir and crush the emacsgolfers.

  • Best score: 15
  • Best player score: 30
  • Position: #213 / 298
  • Number of attempts: 1
Mess in revision history - 1183 entries

Help Joe clean up what Steve has cobbled.

  • Best score: 17
  • Best player score: 35
  • Position: #215 / 249
  • Number of attempts: 3
switch variable - 5045 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 13
  • Position: #1250 / 1742
  • Number of attempts: 2
Rafal C.
Twitter:

entered into 22 challenges

contributed 0 challenges