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 - 33866 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: #409 / 7474
  • Number of attempts: 8
Swap values - 4661 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 11
  • Position: #40 / 1282
  • Number of attempts: 6
Search and Replace 0 - 5031 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #434 / 1638
  • Number of attempts: 5
Just the middle - 11541 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2156 / 4230
  • Number of attempts: 3
Python Hello World! Reformatting - 1007 entries

A novice Python using prints Hello World! and a pro shows him different way. Using vim to get into pro style from novice, win the challenge.

  • Best score: 39
  • Best player score: 41
  • Position: #68 / 384
  • Number of attempts: 4
Scrambled numbers - 814 entries

Four is NOT 1. One is 1.

  • Best score: 18
  • Best player score: 20
  • Position: #56 / 185
  • Number of attempts: 8
Collect List - 4317 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 12
  • Position: #191 / 1194
  • Number of attempts: 5
VimGolfNight - 575 entries

Based on "The name of the game".

  • Best score: 12
  • Best player score: 12
  • Position: #236 / 352
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10713 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #940 / 3700
  • Number of attempts: 7
Words in parens - 12992 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 15
  • Position: #1538 / 3977
  • Number of attempts: 4
Append semicolon after expressions - 1061 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 11
  • Position: #93 / 421
  • Number of attempts: 3
A Simple One - 1067 entries

Here is a very simple one - just to illustrate/introduce a vim feature that some people seem to miss...

  • Best score: 9
  • Best player score: 9
  • Position: #429 / 671
  • Number of attempts: 1
Reverse Simple Deletion - 862 entries

You did the simple deletion, now reverse it.

  • Best score: 11
  • Best player score: 12
  • Position: #325 / 463
  • Number of attempts: 2
Reverse characters in a line - 789 entries

You have everything you need, just not in the right order. Mastermind would give you 26 white pegs.

  • Best score: 12
  • Best player score: 16
  • Position: #160 / 269
  • Number of attempts: 3
Change the content of a string - 1711 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 23
  • Position: #319 / 629
  • Number of attempts: 4
Simple text editing with Vim - 13273 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #1540 / 3811
  • Number of attempts: 3
ramandeep randhawa
Twitter:

entered into 16 challenges

contributed 0 challenges