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

Rearrange array to single level - 1528 entries

The goal is to flatten the array into a single list and remove any empty elements.

  • Best score: 14
  • Best player score: 16
  • Position: #24 / 254
  • Number of attempts: 11
Copy punctuation - 599 entries

I want to copy the last line’s brackets, quotes, and commas to each line. How?

  • Best score: 19
  • Best player score: 30
  • Position: #45 / 149
  • Number of attempts: 7
Inverting Lines - 1923 entries

A simple challenge to invert all lines, except the first.

  • Best score: 10
  • Best player score: 10
  • Position: #145 / 516
  • Number of attempts: 7
Rural Post - 4567 entries

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

  • Best score: 9
  • Best player score: 13
  • Position: #647 / 1114
  • Number of attempts: 1
Add quotes to ansible playbook - 1015 entries

You created an ansible playbook, but forgot to add quotes. Can you fix it?

  • Best score: 8
  • Best player score: 10
  • Position: #247 / 319
  • Number of attempts: 3
Data reformat - 304 entries

Reformat this copy-paste data! #csv

  • Best score: 36
  • Best player score: 39
  • Position: #19 / 66
  • Number of attempts: 6
Simple, Practical, and Common - 33787 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
  • Position: #2098 / 7454
  • Number of attempts: 6
Get mail address from outlook format - 649 entries

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

  • Best score: 15
  • Best player score: 15
  • Position: #25 / 204
  • Number of attempts: 6
Reconstruct the actual output from my unit test tool report - 152 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
  • Position: #33 / 52
  • Number of attempts: 3
Swap values - 4647 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 11
  • Position: #321 / 1276
  • Number of attempts: 9
prepend * to every non-blank line - 6358 entries

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

  • Best score: 10
  • Best player score: 10
  • Position: #81 / 1551
  • Number of attempts: 9
One number per line - 18799 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 17
  • Position: #1304 / 3881
  • Number of attempts: 6
Add semicolons - 10899 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Position: #573 / 3078
  • Number of attempts: 4
Box it - 7954 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Position: #306 / 1886
  • Number of attempts: 6
citizen_hacks_2019_part5 - 32 entries

For the Citizen Hacks 2019 Vim competition

  • Best score: 48
  • Best player score: 57
  • Position: #10 / 11
  • Number of attempts: 2
Just the middle - 11509 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #3026 / 4218
  • Number of attempts: 2
citizen_hacks_2019_challenge5 - 147 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 6
  • Best player score: 9
  • Position: #76 / 77
  • Number of attempts: 2
Line under headers - 2072 entries

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

  • Best score: 24
  • Best player score: 36
  • Position: #388 / 510
  • Number of attempts: 2
I forgot quotes - 16061 entries

Oops.

  • Best score: 10
  • Best player score: 20
  • Position: #3689 / 4195
  • Number of attempts: 1
Words in parens - 12975 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #1083 / 3971
  • Number of attempts: 3
Mats Faugli
Twitter:

Father of three, programmer @Omegapoint. Passion for GNU/Linux. Principles over hypes, Neovim over VSCode. Love 60s and 70s progrock.

entered into 20 challenges

contributed 0 challenges