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

Add semicolons - 7674 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 13
  • Number of attempts: 1
I forgot quotes - 14259 entries

Oops.

  • Best score: 10
  • Best player score: 14
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10072 entries

A HAPPY NEW YEAR 2014 !

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

We should all ace this, right?

  • Best score: 14
  • Best player score: 16
  • Number of attempts: 2
Just the middle - 10319 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 3
Quote modules - 615 entries

Complete golang import statement.

  • Best score: 21
  • Best player score: 28
  • Number of attempts: 1
Bad Copy Syntax - 1582 entries

Copy should be from right to left, but sometimes you type it wrong.

  • Best score: 19
  • Best player score: 32
  • Number of attempts: 3
Resort and deup a CSV list - 122 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
Unsemantic linewrapping - 612 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: 9
  • Number of attempts: 1
SCREAMING_SNAKE_CASE to Title Case - 821 entries

Convert strings in SCREAMING_SNAKE_CASE to Title Case. Examples: EMPLOYEE_NAME -> Employee Name REVENUE_YEAR_TO_DATE -> Revenue Year To Date SALARY -> Salary

  • Best score: 19
  • Best player score: 20
  • Number of attempts: 10
One number per line - 16220 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 18
  • Number of attempts: 6
Com(m)a Trouble - 2699 entries

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

  • Best score: 12
  • Best player score: 17
  • Number of attempts: 1
Hogwarts Email Sorting - 516 entries

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

  • Best score: 20
  • Best player score: 21
  • Number of attempts: 11
remove lines containing the word "reader" - 2800 entries

easy stuff

  • Best score: 9
  • Best player score: 10
  • Number of attempts: 3
prepend * to every non-blank line - 2522 entries

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

  • Best score: 10
  • Best player score: 11
  • Number of attempts: 2
Rob Pilling
Twitter:

how did this get here i am not good with computer

entered into 15 challenges

contributed 0 challenges