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 - 1584 entries

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

  • Best score: 10
  • Best player score: 12
  • Position: #208 / 528
  • Number of attempts: 3
Wikitext headings to markdown - 981 entries

Convert the wikitext headings to markdown.

  • Best score: 20
  • Best player score: 24
  • Position: #101 / 204
  • Number of attempts: 5
hello-world-vimgolf - 2381 entries

Simple number generation

  • Best score: 10
  • Best player score: 11
  • Position: #360 / 676
  • Number of attempts: 3
Inverting Lines - 1837 entries

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

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

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

  • Best score: 9
  • Best player score: 10
  • Position: #436 / 1074
  • Number of attempts: 6
Simple, Practical, and Common - 33400 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: #6223 / 7369
  • Number of attempts: 1
Swap values - 4548 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 15
  • Position: #968 / 1258
  • Number of attempts: 2
V to the i - 4752 entries

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

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

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

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

This docstring is a complete lie. Fix it.

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

entered into 10 challenges

contributed 0 challenges