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. - 576 entries

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

  • Best score: 17
  • Best player score: 17
  • Position: #54 / 324
  • Number of attempts: 5
Simple, Practical, and Common - 33929 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: #3353 / 7489
  • Number of attempts: 3
One number per line - 18840 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 18
  • Position: #1499 / 3893
  • Number of attempts: 2
Swap values inside brackets - 2539 entries

Easy challenge.

  • Best score: 13
  • Best player score: 19
  • Position: #385 / 590
  • Number of attempts: 2
V to the i - 4833 entries

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

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

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

  • Best score: 12
  • Best player score: 19
  • Position: #715 / 864
  • Number of attempts: 1
Add semicolons - 10923 entries

Simply add a semicolon at the end of each line

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

easy stuff

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

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

  • Best score: 12
  • Best player score: 15
  • Position: #437 / 901
  • Number of attempts: 3
Box it - 7987 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 23
  • Position: #568 / 1895
  • 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 - 11555 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2806 / 4234
  • 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 - 2243 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 / 683
  • Number of attempts: 2
Change part of a function name in multiple occurrences - 679 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 / 211
  • 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 - 4317 entries

Convert to comma separated list.

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

Oops.

  • Best score: 10
  • Best player score: 15
  • Position: #2327 / 4208
  • Number of attempts: 3
-a-b-c- - 3225 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 17
  • Position: #1017 / 1140
  • Number of attempts: 2
Words in parens - 13005 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #992 / 3979
  • Number of attempts: 3
Simple text editing with Vim - 13419 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 / 3846
  • Number of attempts: 3
gravestench
Twitter:

i like synthesizers, electronics, and programming.

entered into 23 challenges

contributed 0 challenges