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

Simple, Practical, and Common - 33970 entries

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.

  • Best score: 22
  • Best player score: 22
  • Position: #378 / 7503
  • Number of attempts: 7
Swap values - 4703 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 11
  • Position: #19 / 1291
  • Number of attempts: 5
V to the i - 4860 entries

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

  • Best score: 7
  • Best player score: 7
  • Position: #339 / 1910
  • Number of attempts: 3
Extract argument from function - 2399 entries

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

  • Best score: 13
  • Best player score: 17
  • Position: #628 / 767
  • Number of attempts: 2
Just the middle - 11590 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #598 / 4246
  • Number of attempts: 5
Basic renumbering - 5731 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 14
  • Position: #453 / 1277
  • Number of attempts: 5
Vice versa - 8011 entries

Little role switching.

  • Best score: 12
  • Best player score: 12
  • Position: #158 / 2153
  • Number of attempts: 4
Free hyphen! - 191 entries

Just like "Inner hyphens", but I'm giving you a free hyphen to play with. Will your solution be any different?

  • Best score: 9
  • Best player score: 11
  • Position: #59 / 94
  • Number of attempts: 2
comments galore - 1079 entries

Basic comment reformatting

  • Best score: 10
  • Best player score: 10
  • Position: #146 / 431
  • Number of attempts: 2
Inner hyphens - 145 entries

Yet another hyphen challenge. Adding 5 hyphens to a file shouldn't be too hard.

  • Best score: 11
  • Best player score: 12
  • Position: #37 / 86
  • Number of attempts: 2
Alsa configuration - 528 entries

I'm tweaking my ~/.asoundrc file!

  • Best score: 22
  • Best player score: 22
  • Position: #23 / 130
  • Number of attempts: 4
Collect List - 4332 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 12
  • Position: #182 / 1196
  • Number of attempts: 5
Space out the alphabet - 1690 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 15
  • Position: #52 / 454
  • Number of attempts: 3
Fill visual area - 107 entries

Just have fun!

  • Best score: 20
  • Best player score: 20
  • Position: #7 / 39
  • Number of attempts: 4
I forgot quotes - 16179 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #372 / 4218
  • Number of attempts: 5
-a-b-c- - 3233 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 14
  • Position: #336 / 1143
  • Number of attempts: 6
Change name of a variable - 182 entries

Replace the name of the $variable with the fastest move possible. The challenge is having a command that allow you to easily change the variable name even if its indented.

  • Best score: 9
  • Best player score: 9
  • Position: #98 / 140
  • Number of attempts: 1
Words in parens - 13032 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #672 / 3986
  • Number of attempts: 6
paste indent correction - JS - 114 entries

You copy some javascript code from a website and paste it into vim, it does not look good!

  • Best score: 16
  • Best player score: 16
  • Position: #35 / 60
  • Number of attempts: 3
Python: Lots of function arguments - 128 entries

The function definition is too long for one line. The modeline helps you with some typical Python indent settings.

  • Best score: 6
  • Best player score: 13
  • Position: #18 / 52
  • Number of attempts: 2
SFD-ROC: ASCII Logo Border - 98 entries

Draw a border around this familiar logo ;)

  • Best score: 20
  • Best player score: 20
  • Position: #5 / 34
  • Number of attempts: 4
switch variable - 5114 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 11
  • Position: #404 / 1759
  • Number of attempts: 2
Make it more readable - 2028 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 16
  • Position: #406 / 656
  • Number of attempts: 1
Simple text editing with Vim - 13526 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 14
  • Position: #1544 / 3879
  • Number of attempts: 2
Reformat/Refactor a Golfer Class - 7616 entries

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

  • Best score: 7
  • Best player score: 35
  • Position: #395 / 1877
  • Number of attempts: 4
Yahyalexandre33
Twitter:

entered into 25 challenges

contributed 0 challenges