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

Words in parens - 12303 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 3
Simple, Practical, and Common - 31370 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: 22
  • Number of attempts: 6
citizen_hacks_2019_part5 - 8 entries

For the Citizen Hacks 2019 Vim competition

  • Best score: 48
  • Best player score: 57
  • Number of attempts: 2
I forgot quotes - 14996 entries

Oops.

  • Best score: 10
  • Best player score: 20
  • Number of attempts: 1
Just the middle - 10727 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 2
citizen_hacks_2019_challenge5 - 92 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 6
  • Best player score: 9
  • Number of attempts: 2
Add semicolons - 9031 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 4
Reconstruct the actual output from my unit test tool report - 95 entries

When a test fails, my unit test tool reports differences between the actual output and the expected output as follow: - line in the expected output but missing in the actual output are prefixed with a dash - unexpected lines in the actual output are prefixed with a plus sign - comments added by the unit test tool are prefixed with a question mark - common lines are showed `as-is` (well, almost;) From that "diff" format, I would like to reconstruct the actual output.

  • Best score: 16
  • Best player score: 17
  • Number of attempts: 3
Swap values - 4261 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 9
Get mail address from outlook format - 424 entries

Create a mail list space separated of mail list formatted by outlook

  • Best score: 15
  • Best player score: 15
  • Number of attempts: 6
Line under headers - 1631 entries

Put a line under each header, and remove the other markdown formatting.

  • Best score: 24
  • Best player score: 36
  • Number of attempts: 2
prepend * to every non-blank line - 4488 entries

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

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 9
One number per line - 17298 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 17
  • Number of attempts: 6
Data reformat - 128 entries

Reformat this copy-paste data! #csv

  • Best score: 38
  • Best player score: 39
  • Number of attempts: 6
Box it - 6858 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Number of attempts: 6
Mats Faugli
Twitter:

entered into 15 challenges

contributed 0 challenges