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

Simple, Practical, and Common - 33695 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: 22
  • Position: #756 / 7435
  • Number of attempts: 6
Swap values - 4637 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 11
  • Position: #130 / 1272
  • Number of attempts: 5
Split line with dots - 2154 entries

This line is too long, split it.

  • Best score: 15
  • Best player score: 15
  • Position: #100 / 635
  • Number of attempts: 3
Every other line - 2915 entries

AaAaAaA

  • Best score: 12
  • Best player score: 13
  • Position: #160 / 704
  • Number of attempts: 4
Just the middle - 11477 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #799 / 4206
  • Number of attempts: 3
Add to end of each line... kinda - 333 entries

Visual-block mode can be used to add something to the end of each line, even if they are of differing lengths. However, what if it's not quite at the end?

  • Best score: 12
  • Best player score: 12
  • Position: #84 / 174
  • Number of attempts: 1
Order and join - 985 entries

There's something special about the input order.

  • Best score: 10
  • Best player score: 10
  • Position: #21 / 260
  • Number of attempts: 3
Collect List - 4305 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 17
  • Position: #958 / 1191
  • Number of attempts: 1
I forgot quotes - 16014 entries

Oops.

  • Best score: 10
  • Best player score: 15
  • Position: #2172 / 4188
  • Number of attempts: 2
Letter case trickery - 1630 entries

This file is in a downright esoteric format, consisting of hexadecimal numbers, non-hexadecimal keywords, and "Z" indicating end-of-line. Make the hexadecimal numbers lowercase.

  • Best score: 9
  • Best player score: 9
  • Position: #7 / 518
  • Number of attempts: 5
Words in parens - 12957 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #734 / 3967
  • Number of attempts: 4
Let's play some Ivmgolf - 1122 entries

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 7
  • Position: #101 / 446
  • Number of attempts: 2
Change the content of a string - 1591 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 22
  • Position: #164 / 593
  • Number of attempts: 2
Reconstruct the Sentence - 1575 entries

Get the sentence back in the proper order, remove duplicate lines, and then combine the separate lines into one.

  • Best score: 19
  • Best player score: 20
  • Position: #102 / 423
  • Number of attempts: 7
Saurav Mitra
Twitter:

entered into 14 challenges

contributed 0 challenges