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

V to the i - 4864 entries

Input is 99 V's. Output is 100 i's.

  • Best score: 7
  • Best player score: 9
  • Position: #1599 / 1912
  • Number of attempts: 4
Extract argument from function - 2401 entries

The aim is to see if you can do some refactoring very fast.

  • Best score: 13
  • Best player score: 25
  • Position: #758 / 768
  • Number of attempts: 2
Search and Replace 0 - 5124 entries

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

  • Best score: 12
  • Best player score: 18
  • Position: #1408 / 1670
  • Number of attempts: 2
Just the middle - 11611 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 11
  • Position: #3947 / 4252
  • Number of attempts: 1
Basic renumbering - 5731 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 44
  • Position: #1264 / 1277
  • Number of attempts: 1
Rail fence transposition cipher - 97 entries

Solve a rail fence transposition cipher using vim. This ciphertext was created using two rails. Use vim to transpose the text and recover the original quote.

  • Best score: 14
  • Best player score: 45
  • Position: #27 / 27
  • Number of attempts: 1
Space out the alphabet - 1691 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 28
  • Position: #419 / 455
  • Number of attempts: 1
Mute the second method of this script - 461 entries

prepend a # infront of every line of the second method

  • Best score: 8
  • Best player score: 10
  • Position: #185 / 243
  • Number of attempts: 1
Happy TvvO - 438 entries

Don’t forget the past, learn from it. Happy New Year.

  • Best score: 12
  • Best player score: 12
  • Position: #85 / 210
  • Number of attempts: 2
I forgot quotes - 16185 entries

Oops.

  • Best score: 10
  • Best player score: 28
  • Position: #4088 / 4221
  • Number of attempts: 1
learn vim in short time - 246 entries

so happy to learn vim.because vim is awesome

  • Best score: 8
  • Best player score: 10
  • Position: #160 / 166
  • Number of attempts: 1
-a-b-c- - 3237 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 21
  • Position: #1103 / 1145
  • Number of attempts: 2
Neither Fizz nor Buzz - 270 entries

Not your regular increment macro! The gaps are tricky.

  • Best score: 13
  • Best player score: 20
  • Position: #76 / 106
  • Number of attempts: 3
Do you demand a shrubbery? - 1187 entries

Use :redir and crush the emacsgolfers.

  • Best score: 15
  • Best player score: 28
  • Position: #204 / 307
  • Number of attempts: 3
Two become one - 736 entries

We have two c arrays and want to make one two dimensional out of it. Can we do that?

  • Best score: 25
  • Best player score: 42
  • Position: #194 / 212
  • Number of attempts: 2
Where should I put the Newline? - 898 entries

Help me put the newline.

  • Best score: 7
  • Best player score: 9
  • Position: #430 / 446
  • Number of attempts: 2
A HAPPY NEW YEAR 2014 ! - 10749 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 22
  • Position: #3611 / 3712
  • Number of attempts: 2
quotes inside quotes - 3200 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: 30
  • Position: #1070 / 1091
  • Number of attempts: 3
Words in parens - 13033 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 23
  • Position: #3673 / 3987
  • Number of attempts: 1
Saving the hashes(#) - 2115 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: 37
  • Position: #450 / 487
  • Number of attempts: 1
Vertical Limit - 2634 entries

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

  • Best score: 21
  • Best player score: 34
  • Position: #724 / 776
  • Number of attempts: 1
Switch function arguments - 2204 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 14
  • Position: #496 / 681
  • Number of attempts: 1
switch variable - 5120 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 15
  • Position: #1521 / 1761
  • Number of attempts: 3
Make it more readable - 2036 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 18
  • Position: #536 / 657
  • Number of attempts: 1
Reformat/Refactor a Golfer Class - 7649 entries

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

  • Best score: 7
  • Best player score: 51
  • Position: #1506 / 1882
  • Number of attempts: 3
ಸುಬ್ರಹ್ಮಣ್ಯ ಜೋಶಿ
Twitter:

entered into 25 challenges

contributed 0 challenges