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

Java to JavaScript - 256 entries

Let convert some simple Java file to JavaScript!

  • Best score: 59
  • Best player score: 73
  • Position: #25 / 66
  • Number of attempts: 7
Wikitext headings to markdown - 960 entries

Convert the wikitext headings to markdown.

  • Best score: 20
  • Best player score: 22
  • Position: #83 / 198
  • Number of attempts: 4
hello-world-vimgolf - 2311 entries

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #104 / 653
  • Number of attempts: 5
swap number pairs - 2002 entries

Swap the numbers in a bunch of 2-element arrays.

  • Best score: 16
  • Best player score: 27
  • Position: #204 / 369
  • Number of attempts: 5
Satisfy the go linter - 2169 entries

You just came up with this briliant go vars package. But dang, you forgot to add comments to the exported variables. Can you add a comment over each variable with a TODO-placeholder?

  • Best score: 20
  • Best player score: 23
  • Position: #204 / 434
  • Number of attempts: 6
Replace pattern with 1, 2, 3, ... on each line - 1089 entries

For each line replace a search pattern (in this case $) with numbers starting at 1 and then increasing by 1 for each replaced match. a$b$c$ -> a0b1c2

  • Best score: 21
  • Best player score: 29
  • Position: #136 / 222
  • Number of attempts: 1
Whitespace, empty lines and tabs - 3290 entries

Convert tabs to spaces, strip empty lines and trailing whitespace.

  • Best score: 16
  • Best player score: 20
  • Position: #194 / 729
  • Number of attempts: 9
AMG
Twitter:

entered into 7 challenges

contributed 0 challenges