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 - 32881 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: 23
  • Position: #2490 / 7266
  • Number of attempts: 3
One number per line - 18369 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 14
  • Position: #153 / 3786
  • Number of attempts: 11
Every other line - 2821 entries

AaAaAaA

  • Best score: 12
  • Best player score: 13
  • Position: #154 / 685
  • Number of attempts: 4
Copy three lines - 2786 entries

If the site is up (by some miracle), make the text under every header identical.

  • Best score: 13
  • Best player score: 13
  • Position: #42 / 624
  • Number of attempts: 5
Just the middle - 11124 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2312 / 4109
  • Number of attempts: 1
Turn a ninja to case-insensitive [Nn][Ii][Nn][Jj][Aa] regexp! - 46 entries

I bumped into this in a dailywtf code: http://pastebin.com/QApa5ycS I didn't want to translate a string whenever I wanted to be [Ss][Aa][Rr][Cc][Aa][Ss][Tt][Ii][Cc] on slack, so I figured a script (python, sed, whatever) would be helpful. Well, or a few vim keystroke!

  • Best score: 18
  • Best player score: 18
  • Position: #10 / 28
  • Number of attempts: 1
Basic renumbering - 5422 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 11
  • Position: #51 / 1225
  • Number of attempts: 8
Combines all items - 266 entries

For each line that starts with the same number I want to combine its contents

  • Best score: 9
  • Best player score: 9
  • Position: #19 / 122
  • Number of attempts: 1
Scrambled numbers - 772 entries

Four is NOT 1. One is 1.

  • Best score: 18
  • Best player score: 18
  • Position: #18 / 179
  • Number of attempts: 6
Collect List - 4172 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 12
  • Position: #268 / 1165
  • Number of attempts: 4
Space out the alphabet - 1575 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 17
  • Position: #183 / 431
  • Number of attempts: 6
Words in parens - 12729 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #718 / 3917
  • Number of attempts: 6
Abc Def
Twitter:

entered into 12 challenges

contributed 0 challenges