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

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

  • Best score: 10
  • Best player score: 12
  • Position: #204 / 518
  • Number of attempts: 3
Wikitext headings to markdown - 960 entries

Convert the wikitext headings to markdown.

  • Best score: 20
  • Best player score: 24
  • Position: #99 / 198
  • Number of attempts: 5
hello-world-vimgolf - 2311 entries

Simple number generation

  • Best score: 10
  • Best player score: 11
  • Position: #349 / 653
  • Number of attempts: 3
Inverting Lines - 1797 entries

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

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

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

  • Best score: 9
  • Best player score: 10
  • Position: #435 / 1066
  • Number of attempts: 6
Simple, Practical, and Common - 33354 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: #6213 / 7358
  • Number of attempts: 1
Swap values - 4535 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 15
  • Position: #965 / 1255
  • Number of attempts: 2
V to the i - 4743 entries

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

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

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

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

This docstring is a complete lie. Fix it.

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

entered into 10 challenges

contributed 0 challenges