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

Reformat/Refactor a Golfer Class - 5513 entries

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

  • Best score: 32
  • Best player score: 51
  • Number of attempts: 3
Basic renumbering - 4634 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 44
  • Number of attempts: 1
Make it more readable - 1756 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 18
  • Number of attempts: 1
-a-b-c- - 2611 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 21
  • Number of attempts: 2
switch variable - 4324 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 15
  • Number of attempts: 3
V to the i - 3952 entries

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

  • Best score: 7
  • Best player score: 9
  • Number of attempts: 4
Extract argument from function - 2014 entries

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

  • Best score: 13
  • Best player score: 25
  • Number of attempts: 2
Space out the alphabet - 1381 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 28
  • Number of attempts: 1
Just the middle - 9337 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 11
  • Number of attempts: 1
Neither Fizz nor Buzz - 191 entries

Not your regular increment macro! The gaps are tricky.

  • Best score: 13
  • Best player score: 20
  • Number of attempts: 3
Rail fence transposition cipher - 63 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
  • Number of attempts: 1
Words in parens - 11108 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 23
  • Number of attempts: 1
Where should I put the Newline? - 798 entries

Help me put the newline.

  • Best score: 7
  • Best player score: 9
  • Number of attempts: 2
Happy TvvO - 354 entries

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

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 2
learn vim in short time - 186 entries

so happy to learn vim.because vim is awesome

  • Best score: 8
  • Best player score: 10
  • Number of attempts: 1
Mute the second method of this script - 411 entries

prepend a # infront of every line of the second method

  • Best score: 9
  • Best player score: 10
  • Number of attempts: 1
Vertical Limit - 2124 entries

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

  • Best score: 21
  • Best player score: 34
  • Number of attempts: 1
Search and Replace 0 - 4145 entries

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

  • Best score: 12
  • Best player score: 18
  • Number of attempts: 2
Switch function arguments - 1840 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 14
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 9550 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 22
  • Number of attempts: 2
Do you demand a shrubbery? - 1016 entries

Use :redir and crush the emacsgolfers.

  • Best score: 15
  • Best player score: 28
  • Number of attempts: 3
I forgot quotes - 11966 entries

Oops.

  • Best score: 10
  • Best player score: 28
  • Number of attempts: 1
quotes inside quotes - 2799 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
  • Number of attempts: 3
Saving the hashes(#) - 1765 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
  • Number of attempts: 1
Two become one - 675 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
  • Number of attempts: 2
ಸುಬ್ರಹ್ಮಣ್ಯ ಜೋಶಿ
Twitter:

entered into 25 challenges

contributed 0 challenges