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

Search and Replace 0 - 5075 entries

Replace every instance of 'aaa' with 'xaaax'.

  • Best score: 12
  • Best player score: 18
  • Position: #1358 / 1654
  • Number of attempts: 2
VimGolfNight - 575 entries

Based on "The name of the game".

  • Best score: 12
  • Best player score: 12
  • Position: #99 / 352
  • Number of attempts: 4
A HAPPY NEW YEAR 2014 ! - 10732 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 13
  • Position: #2534 / 3707
  • Number of attempts: 2
Ninjas Leaderboard - 102 entries

The two lines in "Start file" has an obfuscated email address. Second line give an index (from 1 to 30) to the chars list of the first line, for example, the first char of email (n) is in position 25, second char (i) is in position 19 and s.o.

  • Best score: 25
  • Best player score: 35
  • Position: #28 / 42
  • Number of attempts: 1
Letter case trickery - 1644 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: 13
  • Position: #378 / 520
  • Number of attempts: 3
Words in parens - 13023 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 30
  • Position: #3892 / 3982
  • Number of attempts: 1
Delete unwanted lines - 431 entries

Delete all lines which does not end in "o.."

  • Best score: 9
  • Best player score: 9
  • Position: #96 / 234
  • Number of attempts: 1
Minimalist Limerick - 520 entries

Reproduce this lovely poem.

  • Best score: 30
  • Best player score: 42
  • Position: #149 / 174
  • Number of attempts: 2
SFD-ROC: vimvimvim - 1623 entries

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

  • Best score: 8
  • Best player score: 12
  • Position: #287 / 452
  • Number of attempts: 2
Saving the hashes(#) - 2079 entries

The following file is copied from vimcasts.org(Its only for learning purpose,hope the site owner doesn't mind it), its probably the easiest of challenges.Our goal is to delete every line which doesn't contain a hash signs. The remaining hash signs with numbers are then sorted to get the final output.

  • Best score: 20
  • Best player score: 31
  • Position: #408 / 483
  • Number of attempts: 1
Let's play some Ivmgolf - 1140 entries

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 10
  • Position: #351 / 452
  • Number of attempts: 1
Vertical Limit - 2615 entries

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

  • Best score: 21
  • Best player score: 28
  • Position: #588 / 772
  • Number of attempts: 1
replacing each line of a block selection - 3028 entries

replace each line's ../assets/js with /javascripts

  • Best score: 18
  • Best player score: 23
  • Position: #461 / 784
  • Number of attempts: 1
Switch function arguments - 2192 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 15
  • Position: #558 / 677
  • Number of attempts: 2
switch variable - 5107 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 12
  • Position: #778 / 1757
  • Number of attempts: 2
Make it more readable - 2021 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 18
  • Position: #522 / 655
  • Number of attempts: 2
Numbering a List - 1941 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 28
  • Position: #594 / 657
  • Number of attempts: 1
The Cake is a Lie - 1390 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 10
  • Position: #354 / 539
  • Number of attempts: 2
Reformat/Refactor a Golfer Class - 7558 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 7
  • Best player score: 47
  • Position: #1327 / 1865
  • Number of attempts: 2
mwcz
Twitter:

/E@A:SIU½DRJNFCKTZLWHYPQOBGMXV£

entered into 19 challenges

contributed 0 challenges