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

Replace pattern with 1, 2, 3, ... on each line - 499 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: 26
  • Number of attempts: 7
Yo To Hello - 524 entries

Simply Turn Yo To Hello

  • Best score: 8
  • Best player score: 10
  • Number of attempts: 2
Satisfy the go linter - 514 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: 20
  • Number of attempts: 11
Box it - 6584 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 31
  • Number of attempts: 1
I forgot quotes - 14703 entries

Oops.

  • Best score: 10
  • Best player score: 14
  • Number of attempts: 5
Add string initializers to an enum - 647 entries

Change Typescript enum so that it has string initializers.

  • Best score: 21
  • Best player score: 21
  • Number of attempts: 9
prepend * to every non-blank line - 3811 entries

Prepend an asterisk to every non-blank line in the input file.

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 14
Multiline to Single Line - 149 entries

Convert a multiline, indented file to a single line with no whitespace

  • Best score: 5
  • Best player score: 5
  • Number of attempts: 6
Applying same text modification in several lines - 2526 entries

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

  • Best score: 13
  • Best player score: 14
  • Number of attempts: 6
Hogwarts Email Sorting - 590 entries

Given a list of emails, get the students full name and their associated house.

  • Best score: 20
  • Best player score: 22
  • Number of attempts: 5
Words in parens - 12152 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 25
  • Number of attempts: 1
Add semicolons - 8546 entries

Simply add a semicolon at the end of each line

  • Best score: 8
  • Best player score: 23
  • Number of attempts: 1
Tiago Nascimento
Twitter:

entered into 12 challenges

contributed 0 challenges