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 - 32765 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: 26
  • Position: #3362 / 7241
  • Number of attempts: 1
Swap values - 4409 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 15
  • Position: #767 / 1235
  • Number of attempts: 1
prepend * to every non-blank line - 5829 entries

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

  • Best score: 10
  • Best player score: 17
  • Position: #1008 / 1434
  • Number of attempts: 1
One number per line - 18294 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 21
  • Position: #2252 / 3770
  • Number of attempts: 2
Split line with dots - 2081 entries

This line is too long, split it.

  • Best score: 15
  • Best player score: 17
  • Position: #235 / 618
  • Number of attempts: 1
Fun With The Diagonal - 96 entries

change the lowercase characters on the main diagonal to uppercase

  • Best score: 11
  • Best player score: 11
  • Position: #11 / 73
  • Number of attempts: 1
Paragraph sort - 396 entries

My large herbivorous mammals, Vim commands, and POSIX utilities need to be sorted separately.

  • Best score: 14
  • Best player score: 18
  • Position: #69 / 115
  • Number of attempts: 1
Sorting a glossary - 106 entries

Sort a glossary. Glossary head contains a header phrase ending with ':' and glossary body has multi line text indented with a tab.

  • Best score: 6
  • Best player score: 7
  • Position: #65 / 70
  • Number of attempts: 1
Inner hyphens - 121 entries

Yet another hyphen challenge. Adding 5 hyphens to a file shouldn't be too hard.

  • Best score: 11
  • Best player score: 12
  • Position: #17 / 75
  • Number of attempts: 1
Alsa configuration - 478 entries

I'm tweaking my ~/.asoundrc file!

  • Best score: 22
  • Best player score: 34
  • Position: #94 / 122
  • Number of attempts: 2
ASCII Art - 80 entries

how good are you with simple regex?

  • Best score: 10
  • Best player score: 17
  • Position: #47 / 50
  • Number of attempts: 1
Dmitriy Olshevskiy
Twitter:

entered into 11 challenges

contributed 0 challenges