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 - 5159 entries

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

  • Best score: 12
  • Best player score: 18
  • Position: #1375 / 1674
  • Number of attempts: 2
VimGolfNight - 602 entries

Based on "The name of the game".

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

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 13
  • Position: #2540 / 3715
  • Number of attempts: 2
Ninjas Leaderboard - 114 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: #31 / 45
  • Number of attempts: 1
Letter case trickery - 1686 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: #383 / 525
  • Number of attempts: 3
Words in parens - 13053 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 30
  • Position: #3901 / 3991
  • Number of attempts: 1
Delete unwanted lines - 450 entries

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

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

Reproduce this lovely poem.

  • Best score: 30
  • Best player score: 42
  • Position: #150 / 177
  • Number of attempts: 2
SFD-ROC: vimvimvim - 1642 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: #291 / 457
  • Number of attempts: 2
Saving the hashes(#) - 2116 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: #412 / 488
  • Number of attempts: 1
Let's play some Ivmgolf - 1162 entries

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 10
  • Position: #357 / 459
  • Number of attempts: 1
Vertical Limit - 2637 entries

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

  • Best score: 21
  • Best player score: 28
  • Position: #591 / 778
  • Number of attempts: 1
replacing each line of a block selection - 3067 entries

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

  • Best score: 18
  • Best player score: 23
  • Position: #465 / 789
  • Number of attempts: 1
Switch function arguments - 2229 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 15
  • Position: #564 / 684
  • Number of attempts: 2
switch variable - 5128 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 12
  • Position: #782 / 1764
  • Number of attempts: 2
Make it more readable - 2039 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 18
  • Position: #524 / 658
  • Number of attempts: 2
Numbering a List - 1969 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 28
  • Position: #598 / 661
  • Number of attempts: 1
The Cake is a Lie - 1416 entries

Correct the capitalization of each word

  • Best score: 8
  • Best player score: 10
  • Position: #357 / 542
  • Number of attempts: 2
Reformat/Refactor a Golfer Class - 7681 entries

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

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

/E@A:SIU½DRJNFCKTZLWHYPQOBGMXV£

entered into 19 challenges

contributed 0 challenges