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

Search and Replace 0 - 4450 entries

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

  • Best score: 12
  • Best player score: 18
  • Number of attempts: 2
Add semicolons - 8532 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 16
  • Number of attempts: 4
Box it - 6584 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 30
  • Number of attempts: 4
replacing each line of a block selection - 2704 entries

replace each line's ../assets/js with /javascripts

  • Best score: 18
  • Best player score: 33
  • Number of attempts: 1
Simple, Practical, and Common - 30761 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: 35
  • Number of attempts: 3
Saving the hashes(#) - 1876 entries

The following file is copied from 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: 57
  • 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: 47
  • Number of attempts: 1
Delete unwanted lines - 348 entries

Delete all lines which does not end in "o.."

  • Best score: 9
  • Best player score: 42
  • Number of attempts: 1
Switch function arguments - 1888 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 21
  • Number of attempts: 1
Alberto Pose

I write code that writes code. My tweets are my own.

entered into 9 challenges

contributed 0 challenges