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

Basic renumbering - 5173 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 44
  • Number of attempts: 1
Two become one - 692 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
Words in parens - 12133 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 23
  • Number of attempts: 1
switch variable - 4696 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 15
  • Number of attempts: 3
Mute the second method of this script - 418 entries

prepend a # infront of every line of the second method

  • Best score: 9
  • Best player score: 10
  • Number of attempts: 1
Search and Replace 0 - 4450 entries

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

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

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 14
  • Number of attempts: 1
Extract argument from function - 2136 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
Where should I put the Newline? - 830 entries

Help me put the newline.

  • Best score: 7
  • Best player score: 9
  • Number of attempts: 2
Just the middle - 10547 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 11
  • Number of attempts: 1
Happy TvvO - 367 entries

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

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 2
I forgot quotes - 14653 entries

Oops.

  • Best score: 10
  • Best player score: 28
  • Number of attempts: 1
Space out the alphabet - 1479 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 28
  • Number of attempts: 1
Vertical Limit - 2243 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
Saving the hashes(#) - 1876 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
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
Reformat/Refactor a Golfer Class - 5698 entries

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

  • Best score: 32
  • Best player score: 51
  • Number of attempts: 3
quotes inside quotes - 2952 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
Make it more readable - 1812 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 18
  • Number of attempts: 1
V to the i - 4417 entries

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

  • Best score: 7
  • Best player score: 9
  • Number of attempts: 4
-a-b-c- - 2924 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 21
  • Number of attempts: 2
A HAPPY NEW YEAR 2014 ! - 10177 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 22
  • Number of attempts: 2
learn vim in short time - 196 entries

so happy to learn vim.because vim is awesome

  • Best score: 8
  • Best player score: 10
  • Number of attempts: 1
Neither Fizz nor Buzz - 204 entries

Not your regular increment macro! The gaps are tricky.

  • Best score: 13
  • Best player score: 20
  • Number of attempts: 3
Do you demand a shrubbery? - 1042 entries

Use :redir and crush the emacsgolfers.

  • Best score: 15
  • Best player score: 28
  • Number of attempts: 3
ಸುಬ್ರಹ್ಮಣ್ಯ ಜೋಶಿ
Twitter:

entered into 25 challenges

contributed 0 challenges