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

Populate 3D bone names list - 652 entries

Ran into this at work, excited to see how this gets optimized

  • Best score: 21
  • Best player score: 40
  • Position: #149 / 168
  • Number of attempts: 1
Surround the 'z' character with brackets, quotes, and print as formatted string. - 580 entries

Surround the 'z' character with brackets, quotes, and print as formatted string.

  • Best score: 17
  • Best player score: 17
  • Position: #54 / 326
  • Number of attempts: 5
Simple, Practical, and Common - 33966 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: 25
  • Position: #3356 / 7501
  • Number of attempts: 3
One number per line - 18889 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 18
  • Position: #1503 / 3898
  • Number of attempts: 2
Swap values inside brackets - 2545 entries

Easy challenge.

  • Best score: 13
  • Best player score: 19
  • Position: #386 / 591
  • Number of attempts: 2
V to the i - 4853 entries

Input is 99 V's. Output is 100 i's.

  • Best score: 7
  • Best player score: 7
  • Position: #630 / 1909
  • Number of attempts: 3
Applying same text modification in several lines - 2927 entries

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

  • Best score: 12
  • Best player score: 19
  • Position: #716 / 865
  • Number of attempts: 1
Add semicolons - 10932 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Position: #159 / 3091
  • Number of attempts: 2
remove lines containing the word "reader" - 3643 entries

easy stuff

  • Best score: 9
  • Best player score: 9
  • Position: #121 / 1181
  • Number of attempts: 6
Com(m)a Trouble - 3988 entries

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

  • Best score: 12
  • Best player score: 15
  • Position: #440 / 908
  • Number of attempts: 3
Box it - 7997 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 23
  • Position: #568 / 1897
  • Number of attempts: 6
Cool or not? - 852 entries

abc trying to be cool or not...

  • Best score: 15
  • Best player score: 19
  • Position: #141 / 234
  • Number of attempts: 1
Flip the bit - 140 entries

Change the specific 0 to a 1.

  • Best score: 8
  • Best player score: 10
  • Position: #56 / 79
  • Number of attempts: 1
Just the middle - 11574 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2808 / 4241
  • Number of attempts: 3
ninja substitution - 1436 entries

How can you reuse a previous substitution ?

  • Best score: 14
  • Best player score: 34
  • Position: #254 / 270
  • Number of attempts: 1
One to Ten - 2247 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: #55 / 685
  • Number of attempts: 2
Change part of a function name in multiple occurrences - 680 entries

Change the middle part of the function name in multiple places, preferably using the next and dot commands.

  • Best score: 14
  • Best player score: 15
  • Position: #97 / 212
  • Number of attempts: 3
Delete to the end of the current line - 865 entries

Delete to the end of the current line, but keep the character under the cursor.

  • Best score: 5
  • Best player score: 6
  • Position: #317 / 415
  • Number of attempts: 1
Collect List - 4332 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 12
  • Position: #406 / 1196
  • Number of attempts: 5
I forgot quotes - 16176 entries

Oops.

  • Best score: 10
  • Best player score: 15
  • Position: #2332 / 4216
  • Number of attempts: 3
-a-b-c- - 3233 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 17
  • Position: #1020 / 1143
  • Number of attempts: 2
Words in parens - 13028 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #995 / 3984
  • Number of attempts: 3
Simple text editing with Vim - 13517 entries

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

  • Best score: 13
  • Best player score: 13
  • Position: #566 / 3876
  • Number of attempts: 3
gravestench
Twitter:

i like synthesizers, electronics, and programming.

entered into 23 challenges

contributed 0 challenges