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

ASCII Art - 77 entries

how good are you with simple regex?

  • Best score: 10
  • Best player score: 16
  • Number of attempts: 1
Block Fun 1 - 160 entries

Manipulate the columns to produce desired result.

  • Best score: 14
  • Best player score: 26
  • Number of attempts: 1
SFD-ROC: vimvimvim - 1381 entries

Oh no, this line is longer than 80 chars... put each 'vim' on a new line.

  • Best score: 8
  • Best player score: 8
  • Number of attempts: 9
Swap assigned value - 518 entries

Simple problem but looking for interesting solutions.

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 3
Words in parens - 12084 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 10
attr_aligner - 3245 entries

Two attr keywords. Two separate indentations. Align the colons.

  • Best score: 19
  • Best player score: 19
  • Number of attempts: 3
Mirrored text - 154 entries

backward and forward, and long enough to be challenging

  • Best score: 14
  • Best player score: 21
  • Number of attempts: 1
Simple, Practical, and Common - 30400 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: 28
  • Number of attempts: 2
Swap values - 4197 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 12
  • Number of attempts: 4
quotes inside quotes - 2946 entries

taken from tip 85 of the very good book 'Practical Vim: Edit Text at the Speed of Thought' ! I'd be interested what people use :)

  • Best score: 14
  • Best player score: 15
  • Number of attempts: 3
REDRUM - 136 entries

If you remember "The Shinning", the first time you saw the bloody word REDRUM you probably thinked "What the Hell is that?" Well, then you know that you need a little help from a looking-glass to make sense of it. Now it's time to use vim like a mirror to reveal the message.

  • Best score: 14
  • Best player score: 28
  • Number of attempts: 1
Groups magic - 137 entries

Regexp or macros for string converting: (a) -> ___ (abc) -> ____ (abcd) -> ______ All in the '(' replace to _ multiply by char count + ()

  • Best score: 13
  • Best player score: 14
  • Number of attempts: 1
jk
Twitter:

entered into 12 challenges

contributed 0 challenges