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

hello-world-vimgolf - 2472 entries

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #69 / 699
  • Number of attempts: 5
Contribute to keyboard mashing - 880 entries

Speak in tongues

  • Best score: 17
  • Best player score: 20
  • Position: #170 / 268
  • Number of attempts: 1
Learn to ask for :help - 572 entries

Learn to use the help to reduce your strokes...

  • Best score: 19
  • Best player score: 23
  • Position: #26 / 128
  • Number of attempts: 7
Swap assigned value - 628 entries

Simple problem but looking for interesting solutions.

  • Best score: 10
  • Best player score: 11
  • Position: #113 / 252
  • Number of attempts: 2
Change your calendar - 363 entries

Happy New Year!

  • Best score: 18
  • Best player score: 35
  • Position: #50 / 86
  • Number of attempts: 3
Words in parens - 12868 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 18
  • Position: #2746 / 3950
  • Number of attempts: 2
REDRUM - 151 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: 14
  • Position: #1 / 63
  • Number of attempts: 8
Enumerate words - 251 entries

Enumerate the unique words in order.

  • Best score: 23
  • Best player score: 25
  • Position: #15 / 90
  • Number of attempts: 4
Transposition - 83 entries

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

  • Best score: 31
  • Best player score: 53
  • Position: #24 / 31
  • Number of attempts: 2
Groups magic - 157 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 / 92
  • Number of attempts: 1
Sort by sum of numbers in a line(?) - 60 entries

The lines with the biggest sums need to be at the top. The sums are on the right, which makes life hard. Maybe you can find a feature that will do all the work for you...

  • Best score: 15
  • Best player score: 16
  • Position: #21 / 37
  • Number of attempts: 1
abcd > a b c d - 282 entries

transform the single spaces into 4 spaces repeat for each line

  • Best score: 15
  • Best player score: 15
  • Position: #14 / 220
  • Number of attempts: 1
Python: Lots of function arguments - 105 entries

The function definition is too long for one line. The modeline helps you with some typical Python indent settings.

  • Best score: 6
  • Best player score: 13
  • Position: #5 / 48
  • Number of attempts: 1
A simple change - 444 entries

Just change the numbers in the most efficient way ...

  • Best score: 12
  • Best player score: 14
  • Position: #69 / 190
  • Number of attempts: 1
SFD-ROC: vimvimvim - 1594 entries

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

  • Best score: 8
  • Best player score: 9
  • Position: #169 / 443
  • Number of attempts: 1
SFD-ROC: Pipe Dreams - 102 entries

Move the pipes so they match the output.

  • Best score: 12
  • Best player score: 15
  • Position: #25 / 46
  • Number of attempts: 4
Chucking wood - 111 entries

An exercise in compressing repetitive text. For this challenge, any entry that uses keys outside the main row (such as arrow keys, Home, End, Delete, etc.) will be removed. (Esc is OK, though you should be using C-[ anyway.)

  • Best score: 51
  • Best player score: 58
  • Position: #27 / 47
  • Number of attempts: 1
Stairs Indenting - 452 entries

Indent each line with <line number> whitespaces.

  • Best score: 12
  • Best player score: 14
  • Position: #93 / 195
  • Number of attempts: 1
Let's play some Ivmgolf - 1096 entries

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 9
  • Position: #161 / 442
  • Number of attempts: 2
Vertical Limit - 2487 entries

transform a succession of one word lines to a an array of strings

  • Best score: 21
  • Best player score: 23
  • Position: #204 / 748
  • Number of attempts: 6
DR
Twitter:

entered into 20 challenges

contributed 0 challenges