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

Filter number combinations that don't add to 11 - 401 entries

Append the sum of each line to its end, alongside an equals sign, and remove any that do not sum to 11. The ordering of lines should stay the same. Note that the combinations are semi-arbitrary and not all 4-number combinations are present in the file.

  • Best score: 27
  • Best player score: 27
  • Position: #10 / 114
  • Number of attempts: 6
HS exam question - 1577 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 49
  • Position: #46 / 415
  • Number of attempts: 15
Reformat symbols in list - 1607 entries

Saw this in some lecture, easy reformatting using multiple cursor in VS Code

  • Best score: 24
  • Best player score: 27
  • Position: #132 / 345
  • Number of attempts: 6
Data reformat - 294 entries

Reformat this copy-paste data! #csv

  • Best score: 36
  • Best player score: 38
  • Position: #7 / 65
  • Number of attempts: 9
xrandr outputs and dashes - 704 entries

uh oh, different video drivers identify display outputs with more dashes. Quick, need to change this xrandr script!

  • Best score: 12
  • Best player score: 12
  • Position: #22 / 221
  • Number of attempts: 3
From a Thunderlink to a Markdown link - 764 entries

ThunderLinks are durable hyperlinks to specific email messages generated from Thunderbird in HTML format. Leverage the power of vim to make them suitable for a markdown-formatted file.

  • Best score: 18
  • Best player score: 18
  • Position: #18 / 169
  • Number of attempts: 13
Capitalize the Names - 408 entries

I want to capitalize the names in quotes, but just the people's names, not the file names.

  • Best score: 21
  • Best player score: 21
  • Position: #18 / 97
  • Number of attempts: 6
Yo To Hello - 1129 entries

Simply Turn Yo To Hello

  • Best score: 10
  • Best player score: 10
  • Position: #106 / 523
  • Number of attempts: 3
Simple, Practical, and Common - 33584 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: 30
  • Position: #5329 / 7407
  • Number of attempts: 9
prepend * to every non-blank line - 6298 entries

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

  • Best score: 10
  • Best player score: 10
  • Position: #193 / 1535
  • Number of attempts: 3
Applying same text modification in several lines - 2869 entries

Remove identical text at the beginning of several lines and the closing parenthesis.

  • Best score: 12
  • Best player score: 17
  • Position: #631 / 847
  • Number of attempts: 1
Add semicolons - 10846 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1461 / 3060
  • Number of attempts: 3
remove lines containing the word "reader" - 3574 entries

easy stuff

  • Best score: 9
  • Best player score: 12
  • Position: #939 / 1158
  • Number of attempts: 3
Com(m)a Trouble - 3791 entries

Someone was real stupid when placing his commas. Can you fix it?

  • Best score: 12
  • Best player score: 24
  • Position: #679 / 858
  • Number of attempts: 4
Box it - 7902 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 28
  • Position: #1201 / 1874
  • Number of attempts: 4
Cool or not? - 829 entries

abc trying to be cool or not...

  • Best score: 15
  • Best player score: 23
  • Position: #189 / 230
  • Number of attempts: 3
The D a n k Side of the Moon - 50 entries

You're making a vaporwave cover of The Dark Side of the Moon. So for the tracklisting, you want to: 1. Change the track names to v a p o r c a s e 2. Double the track lengths (since you're slowing them down). Well... let's just double the minutes.

  • Best score: 40
  • Best player score: 54
  • Position: #14 / 17
  • Number of attempts: 2
Just the middle - 11423 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #1387 / 4185
  • Number of attempts: 4
Learn some german verbs - 533 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: 28
  • Position: #99 / 133
  • Number of attempts: 5
Missing Library and a Typo - 887 entries

I forgot to add a c library, please add it for me. Also I'm bad at typing so fix my typo too.

  • Best score: 14
  • Best player score: 35
  • Position: #208 / 213
  • Number of attempts: 1
Adam's challenge - 978 entries

Change both normal to bold and 4 by 2. Adam Wathan challenge this on twitter . He did it in 11 keystrokes on Sublime.

  • Best score: 18
  • Best player score: 20
  • Position: #133 / 268
  • Number of attempts: 4
One to Ten - 2209 entries

Generate the sequence of numbers from 1 to 10, one number per line. Inspired by this Reddit thread: https://redd.it/ak4it2

  • Best score: 12
  • Best player score: 12
  • Position: #57 / 669
  • Number of attempts: 3
I forgot quotes - 15973 entries

Oops.

  • Best score: 10
  • Best player score: 14
  • Position: #1825 / 4175
  • Number of attempts: 5
Chris AtLee
Twitter:

entered into 23 challenges

contributed 0 challenges