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

Swap assigned value - 614 entries

Simple problem but looking for interesting solutions.

  • Best score: 10
  • Best player score: 11
  • Position: #113 / 247
  • Number of attempts: 1
VimGolfNight - 531 entries

Based on "The name of the game".

  • Best score: 12
  • Best player score: 13
  • Position: #292 / 342
  • Number of attempts: 5
Letter case trickery - 1594 entries

This file is in a downright esoteric format, consisting of hexadecimal numbers, non-hexadecimal keywords, and "Z" indicating end-of-line. Make the hexadecimal numbers lowercase.

  • Best score: 9
  • Best player score: 11
  • Position: #180 / 511
  • Number of attempts: 2
Untangle my tail, please! - 57 entries

You know, this words were playing to chase their tails and Oops! What happened? Now we have a complete mess, their tails are totally tangled, can you please help them to untangle their tails?

  • Best score: 16
  • Best player score: 21
  • Position: #30 / 31
  • Number of attempts: 1
quotes inside quotes - 3124 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: 17
  • Position: #663 / 1071
  • Number of attempts: 3
Parsing with CSV: Unify lines and result. - 165 entries

col1;col2;col3;col4 A;1;4;5 A;3;4; A;1;4; # New output: col1;col2;col3;col4 A;1(2x);3;4(3x);5 any ideas?

  • Best score: 21
  • Best player score: 23
  • Position: #42 / 73
  • Number of attempts: 2
REDRUM - 149 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: 17
  • Position: #32 / 61
  • Number of attempts: 2
Enumerate words - 248 entries

Enumerate the unique words in order.

  • Best score: 23
  • Best player score: 27
  • Position: #51 / 88
  • Number of attempts: 3
Groups magic - 146 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
  • Position: #20 / 88
  • Number of attempts: 3
abcd > a b c d - 279 entries

transform the single spaces into 4 spaces repeat for each line

  • Best score: 15
  • Best player score: 15
  • Position: #4 / 217
  • Number of attempts: 2
lamb had a little Mary - 582 entries

"Mary" and "lamb" are swapped. Unswap them. Fast as you can.

  • Best score: 16
  • Best player score: 40
  • Position: #131 / 161
  • Number of attempts: 2
Enharmonic Equivalents - 55 entries

Transform # and b to digraphs

  • Best score: 18
  • Best player score: 19
  • Position: #21 / 34
  • Number of attempts: 2
un-C-escape string - 56 entries

Convert escape sequences to characters

  • Best score: 12
  • Best player score: 12
  • Position: #32 / 50
  • Number of attempts: 1
Reverse characters in a line - 709 entries

You have everything you need, just not in the right order. Mastermind would give you 26 white pegs.

  • Best score: 12
  • Best player score: 13
  • Position: #53 / 249
  • Number of attempts: 1

Contributed Challenges

Transposition - 76 entries

Transpose the original lines in separate columns, one for each line.

REDRUM - 149 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.

Enumerate words - 248 entries

Enumerate the unique words in order.

Untangle my tail, please! - 57 entries

You know, this words were playing to chase their tails and Oops! What happened? Now we have a complete mess, their tails are totally tangled, can you please help them to untangle their tails?

Under the cupola - 45 entries

Taking some liberty about the name and plot of the Stephen King's famous novel (and TV series) to make this challenge. Are you able to recreate graphically the key phrase of the story? (I think is gonna be hard!)

joe di castro
Twitter:

Driven by passion and haunted by knowledge, I spend my days trying to be a little less imperfect, step by step.

entered into 14 challenges

contributed 5 challenges