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

Put a newline after every 10 lines in vim - 985 entries

Goal is to put a newline after every 10 lines in vim.

  • Best score: 10
  • Best player score: 12
  • Position: #129 / 346
  • Number of attempts: 3
Wikitext headings to markdown - 605 entries

Convert the wikitext headings to markdown.

  • Best score: 20
  • Best player score: 24
  • Position: #62 / 139
  • Number of attempts: 5
hello-world-vimgolf - 1574 entries

Simple number generation

  • Best score: 10
  • Best player score: 11
  • Position: #240 / 452
  • Number of attempts: 3
Inverting Lines - 1333 entries

A simple challenge to invert all lines, except the first.

  • Best score: 10
  • Best player score: 10
  • Position: #151 / 372
  • Number of attempts: 2
Rural Post - 4115 entries

Simple challenge to remove all but the post code on each line

  • Best score: 9
  • Best player score: 10
  • Position: #419 / 1017
  • Number of attempts: 6
Simple, Practical, and Common - 32953 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: 33
  • Position: #6146 / 7275
  • Number of attempts: 1
Swap values - 4440 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 15
  • Position: #953 / 1241
  • Number of attempts: 2
V to the i - 4641 entries

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

  • Best score: 7
  • Best player score: 7
  • Position: #779 / 1857
  • Number of attempts: 4
Extract argument from function - 2218 entries

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

  • Best score: 13
  • Best player score: 13
  • Position: #260 / 729
  • Number of attempts: 4
Change the content of a string - 1350 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 22
  • Position: #195 / 521
  • Number of attempts: 5
Ofer Yehuda
Twitter:

entered into 10 challenges

contributed 0 challenges