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

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

  • Best score: 10
  • Best player score: 12
  • Position: #215 / 558
  • Number of attempts: 3
Wikitext headings to markdown - 987 entries

Convert the wikitext headings to markdown.

  • Best score: 20
  • Best player score: 24
  • Position: #102 / 209
  • Number of attempts: 5
hello-world-vimgolf - 2501 entries

Simple number generation

  • Best score: 10
  • Best player score: 11
  • Position: #378 / 709
  • Number of attempts: 3
Inverting Lines - 1907 entries

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

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

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

  • Best score: 9
  • Best player score: 10
  • Position: #448 / 1109
  • Number of attempts: 6
Simple, Practical, and Common - 33742 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: #6278 / 7447
  • Number of attempts: 1
Swap values - 4643 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 15
  • Position: #977 / 1274
  • Number of attempts: 2
V to the i - 4818 entries

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

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

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

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

This docstring is a complete lie. Fix it.

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

entered into 10 challenges

contributed 0 challenges