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 - 629 entries

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

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

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

  • Best score: 17
  • Best player score: 17
  • Position: #54 / 310
  • Number of attempts: 5
Simple, Practical, and Common - 33621 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: #3327 / 7422
  • Number of attempts: 3
One number per line - 18732 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 18
  • Position: #1492 / 3865
  • Number of attempts: 2
Swap values inside brackets - 2496 entries

Easy challenge.

  • Best score: 14
  • Best player score: 19
  • Position: #378 / 579
  • Number of attempts: 2
V to the i - 4802 entries

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

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

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

  • Best score: 12
  • Best player score: 19
  • Position: #703 / 851
  • Number of attempts: 1
Add semicolons - 10859 entries

Simply add a semicolon at the end of each line

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

easy stuff

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

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

  • Best score: 12
  • Best player score: 15
  • Position: #424 / 865
  • Number of attempts: 3
Box it - 7905 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 23
  • Position: #563 / 1876
  • Number of attempts: 6
Cool or not? - 829 entries

abc trying to be cool or not...

  • Best score: 15
  • Best player score: 19
  • Position: #139 / 230
  • Number of attempts: 1
Flip the bit - 130 entries

Change the specific 0 to a 1.

  • Best score: 7
  • Best player score: 10
  • Position: #53 / 74
  • Number of attempts: 1
Just the middle - 11457 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2797 / 4198
  • Number of attempts: 3
ninja substitution - 1420 entries

How can you reuse a previous substitution ?

  • Best score: 14
  • Best player score: 34
  • Position: #251 / 267
  • Number of attempts: 1
One to Ten - 2219 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 / 672
  • Number of attempts: 2
Change part of a function name in multiple occurrences - 662 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: #95 / 208
  • Number of attempts: 3
Delete to the end of the current line - 812 entries

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

  • Best score: 5
  • Best player score: 6
  • Position: #298 / 391
  • Number of attempts: 1
Collect List - 4298 entries

Convert to comma separated list.

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

Oops.

  • Best score: 10
  • Best player score: 15
  • Position: #2310 / 4181
  • Number of attempts: 3
-a-b-c- - 3213 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 17
  • Position: #1014 / 1137
  • Number of attempts: 2
Words in parens - 12939 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #984 / 3964
  • Number of attempts: 3
Simple text editing with Vim - 12815 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 / 3696
  • Number of attempts: 3
gravestench
Twitter:

i like synthesizers, electronics, and programming.

entered into 23 challenges

contributed 0 challenges