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

Inverting Lines - 1797 entries

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

  • Best score: 10
  • Best player score: 17
  • Position: #400 / 486
  • Number of attempts: 3
Rural Post - 4351 entries

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

  • Best score: 9
  • Best player score: 9
  • Position: #177 / 1066
  • Number of attempts: 6
Satisfy the go linter - 2169 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: 24
  • Position: #230 / 434
  • Number of attempts: 3
Yo To Hello - 1107 entries

Simply Turn Yo To Hello

  • Best score: 10
  • Best player score: 10
  • Position: #359 / 512
  • Number of attempts: 1
Replace pattern with 1, 2, 3, ... on each line - 1089 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: 40
  • Position: #188 / 222
  • Number of attempts: 4
Simple, Practical, and Common - 33353 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: #3092 / 7358
  • Number of attempts: 4
prepend * to every non-blank line - 6201 entries

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

  • Best score: 10
  • Best player score: 10
  • Position: #417 / 1514
  • Number of attempts: 5
One number per line - 18613 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 17
  • Position: #1330 / 3841
  • Number of attempts: 5
Applying same text modification in several lines - 2845 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #12 / 840
  • Number of attempts: 7
SCREAMING_SNAKE_CASE to Title Case - 1177 entries

Convert strings in SCREAMING_SNAKE_CASE to Title Case. Examples: EMPLOYEE_NAME -> Employee Name REVENUE_YEAR_TO_DATE -> Revenue Year To Date SALARY -> Salary

  • Best score: 19
  • Best player score: 27
  • Position: #142 / 243
  • Number of attempts: 6
Com(m)a Trouble - 3654 entries

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

  • Best score: 12
  • Best player score: 13
  • Position: #327 / 821
  • Number of attempts: 6
Every other line - 2886 entries

AaAaAaA

  • Best score: 12
  • Best player score: 12
  • Position: #80 / 700
  • Number of attempts: 7
Just the middle - 11346 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #3167 / 4160
  • Number of attempts: 2
Basic renumbering - 5584 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 20
  • Position: #815 / 1257
  • Number of attempts: 1
Generate a list of numbers - 283 entries

Please generate list of numbers from 1 to 20.

  • Best score: 14
  • Best player score: 14
  • Position: #61 / 136
  • Number of attempts: 4
change parenthesis - 278 entries

change the pair of braces into a pair of parentheses

  • Best score: 9
  • Best player score: 9
  • Position: #83 / 156
  • Number of attempts: 2
Collect List - 4261 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 17
  • Position: #1005 / 1185
  • Number of attempts: 2
Words in parens - 12848 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 15
  • Position: #1856 / 3943
  • Number of attempts: 6
Compile C - 365 entries

You might have to get clever to do this one.

  • Best score: 19
  • Best player score: 27
  • Position: #113 / 132
  • Number of attempts: 3
Simple text editing with Vim - 12233 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 14
  • Position: #1886 / 3567
  • Number of attempts: 2
naomi (forgetful functor)
Twitter:

23 sols | polymorphic lambda witch ✨ | she/they | haskell + rust + scala dev | likes plush ikea sharks + turbocharged japanese station wagons + arcane girls

entered into 20 challenges

contributed 0 challenges