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

Resort and deup a CSV list - 115 entries

I'm always adding items to a sorted list. There has to be a better way dedup and resort the lists. There are multiple lists with varying lengths to discourage manual sorting. Also Australia's animals are weird.

  • Best score: 44
  • Best player score: 114
  • Number of attempts: 1
One number per line - 13037 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 18
  • Number of attempts: 6
Just the middle - 9333 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 3
A HAPPY NEW YEAR 2014 ! - 9549 entries


  • Best score: 11
  • Best player score: 12
  • Number of attempts: 1
Words in parens - 11106 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 16
  • Number of attempts: 2
Unsemantic linewrapping - 214 entries

[Inspired by a blog post I read: Text adapted.] Sometimes when editing a Markdown file, I wrap the lines semantically. Instead of inserting a newline at 70 columns (or whatever), or making paragraphs one long line, I put in newlines at a point that seems logical to me. This may seem silly, but it produces better diffs. Semantic linewrapping also makes editing snappier. I can delete, edit or insert sentences easily using linewise operations. Code-oriented text editors like Vim and [REDACTED] are really good at this kind of manipulation. Editing text that hasn't been wrapped semantically is a pain, though:

  • Best score: 9
  • Best player score: 9
  • Number of attempts: 1
remove lines containing the word "reader" - 1737 entries

easy stuff

  • Best score: 9
  • Best player score: 10
  • Number of attempts: 3
Rob Pilling

how did this get here i am not good with computer

entered into 7 challenges

contributed 0 challenges