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

Unsemantic linewrapping - 714 entries

[Inspired by a blog post I read: https://scott.mn/2014/02/21/semantic_linewrapping/. 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: 13
  • Number of attempts: 1
One number per line - 17472 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 23
  • Number of attempts: 2
remove lines containing the word "reader" - 3217 entries

easy stuff

  • Best score: 9
  • Best player score: 10
  • Number of attempts: 5
Box it - 7118 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 28
  • Number of attempts: 1
Words in parens - 12379 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 16
  • Number of attempts: 2
Applying same text modification in several lines - 2591 entries

Remove identical text at the beginning of several lines and the closing parenthesis.

  • Best score: 13
  • Best player score: 23
  • Number of attempts: 1
Just the middle - 10832 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 1
I forgot quotes - 15145 entries

Oops.

  • Best score: 10
  • Best player score: 18
  • Number of attempts: 2
Add string initializers to an enum - 682 entries

Change Typescript enum so that it has string initializers.

  • Best score: 21
  • Best player score: 32
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10343 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Number of attempts: 3
One to Ten - 1900 entries

Generate the sequence of numbers from 1 to 10, one number per line. Inspired by this Reddit thread: https://redd.it/ak4it2

  • Best score: 12
  • Best player score: 14
  • Number of attempts: 2
5m0r14x
Twitter:

all is broken if you dig deep enough

entered into 11 challenges

contributed 0 challenges