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

HS exam question - 1510 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 61
  • Position: #120 / 397
  • Number of attempts: 6
Many duplicates - 1255 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #146 / 414
  • Number of attempts: 4
2 quick changes and a numbered list - 599 entries

The ascii will not be lost, but rather numbered in 4 digit blocks with leading zeros.

  • Best score: 37
  • Best player score: 43
  • Position: #64 / 145
  • Number of attempts: 9
delete swap - 1534 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #120 / 482
  • Number of attempts: 2
Generate a very basic Python constructor (fixed) - 1184 entries

Original by @BiddulphCaleb (http://www.vimgolf.com/challenges/6019f1c4642668000cee11e8) - had some extra spaces in output file.

  • Best score: 29
  • Best player score: 44
  • Position: #133 / 249
  • Number of attempts: 8
Fix the shell script! - 2344 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 31
  • Position: #254 / 542
  • Number of attempts: 3
Put a newline after every 10 lines in vim - 1579 entries

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

  • Best score: 10
  • Best player score: 12
  • Position: #220 / 526
  • Number of attempts: 3
hello-world-vimgolf - 2362 entries

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #218 / 668
  • Number of attempts: 3
swap number pairs - 2011 entries

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

  • Best score: 16
  • Best player score: 27
  • Position: #207 / 370
  • Number of attempts: 4
Com(m)a Trouble - 3675 entries

Someone was real stupid when placing his commas. Can you fix it?

  • Best score: 12
  • Best player score: 13
  • Position: #330 / 827
  • Number of attempts: 6
Andrew Liu
Twitter:

entered into 10 challenges

contributed 0 challenges