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 - 32992 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: #3389 / 7283
  • Number of attempts: 1
Swap values - 4482 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 15
  • Position: #774 / 1245
  • Number of attempts: 1
prepend * to every non-blank line - 6030 entries

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

  • Best score: 10
  • Best player score: 17
  • Position: #1041 / 1477
  • Number of attempts: 1
One number per line - 18426 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 21
  • Position: #2274 / 3799
  • Number of attempts: 2
Split line with dots - 2111 entries

This line is too long, split it.

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

change the lowercase characters on the main diagonal to uppercase

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

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

  • Best score: 14
  • Best player score: 18
  • Position: #74 / 120
  • Number of attempts: 1
Sorting a glossary - 115 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: #69 / 74
  • Number of attempts: 1
Inner hyphens - 122 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 / 76
  • Number of attempts: 1
Alsa configuration - 481 entries

I'm tweaking my ~/.asoundrc file!

  • Best score: 22
  • Best player score: 34
  • Position: #95 / 123
  • 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