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

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

  • Best score: 10
  • Best player score: 12
  • Position: #212 / 542
  • Number of attempts: 3
Wikitext headings to markdown - 984 entries

Convert the wikitext headings to markdown.

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

Simple number generation

  • Best score: 10
  • Best player score: 11
  • Position: #365 / 686
  • Number of attempts: 3
Inverting Lines - 1866 entries

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

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

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

  • Best score: 9
  • Best player score: 10
  • Position: #439 / 1083
  • Number of attempts: 6
Simple, Practical, and Common - 33427 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: #6228 / 7377
  • Number of attempts: 1
Swap values - 4553 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 15
  • Position: #969 / 1259
  • Number of attempts: 2
V to the i - 4761 entries

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

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

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

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

This docstring is a complete lie. Fix it.

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

entered into 10 challenges

contributed 0 challenges