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 - 33964 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: #3486 / 7500
  • Number of attempts: 1
Swap values - 4701 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 15
  • Position: #801 / 1290
  • Number of attempts: 1
prepend * to every non-blank line - 6388 entries

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

  • Best score: 10
  • Best player score: 17
  • Position: #1110 / 1559
  • Number of attempts: 1
One number per line - 18889 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 21
  • Position: #2331 / 3898
  • Number of attempts: 2
Split line with dots - 2174 entries

This line is too long, split it.

  • Best score: 15
  • Best player score: 17
  • Position: #239 / 638
  • Number of attempts: 1
Fun With The Diagonal - 110 entries

change the lowercase characters on the main diagonal to uppercase

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

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

  • Best score: 14
  • Best player score: 18
  • Position: #80 / 126
  • Number of attempts: 1
Sorting a glossary - 134 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: #77 / 83
  • Number of attempts: 1
Inner hyphens - 145 entries

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

  • Best score: 11
  • Best player score: 12
  • Position: #21 / 86
  • Number of attempts: 1
Alsa configuration - 525 entries

I'm tweaking my ~/.asoundrc file!

  • Best score: 22
  • Best player score: 34
  • Position: #99 / 129
  • Number of attempts: 2
ASCII Art - 90 entries

how good are you with simple regex?

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

entered into 11 challenges

contributed 0 challenges