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

citizen_hacks_2019_part1 - 9 entries

For the Citizen Hacks 2019 Vim competition

  • Best score: 52
  • Best player score: 65
  • Number of attempts: 1
calculations - 131 entries

Complete these (weird) calculations.

  • Best score: 38
  • Best player score: 41
  • Number of attempts: 9
SCREAMING_SNAKE_CASE to Title Case - 283 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: 33
  • Number of attempts: 1
Bad Copy Syntax - 835 entries

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

  • Best score: 19
  • Best player score: 28
  • Number of attempts: 1
ASCII-art Histogram - 159 entries

Create an ASCCI-art histogram for the given numbers. Make sure not to leave trailing whitespaces. Thanks to VimGolf I recently discovered a feature of Vim thAT blew my mind. I'm curious to see what real ninjas make of it ;-)

  • Best score: 33
  • Best player score: 43
  • Number of attempts: 2
Box it - 3923 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 27
  • Number of attempts: 3
Extract wireshark capture filter - 120 entries

Extract wireshark capture filter from IP plan

  • Best score: 26
  • Best player score: 27
  • Number of attempts: 2
Simple, Practical, and Common - 26308 entries

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.

  • Best score: 14
  • Best player score: 22
  • Number of attempts: 5
Song Transcription Oops - 134 entries

When transcribing vocal music to Canjo Tab you can start by finding the lowest note and assigning that to zero and working your way up from there. However, without fail, I tend to miscount the notes and when I am near done I find a lower note. I mark this with a "z". This means I have to increase all the previous ones by 1. just a sting of numbers :)

  • Best score: 15
  • Best player score: 15
  • Number of attempts: 5
Words in parens - 11277 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 6
I forgot quotes - 12463 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 6
citizen_hacks_2019_challenge3 - 19 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 4
  • Best player score: 4
  • Number of attempts: 1
Prime Numbers - 282 entries

List the first 100 prime numbers.

  • Best score: 34
  • Best player score: 39
  • Number of attempts: 4
Unsemantic linewrapping - 385 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: 10
  • Number of attempts: 4
citizen_hacks_2019_challenge6 - 27 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 3
  • Best player score: 3
  • Number of attempts: 1
citizen_hacks_2019_challenge5 - 61 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 6
  • Best player score: 6
  • Number of attempts: 2
citizen_hacks_2019_challenge1 - 23 entries

For the Citizen Hacks 2019 Vim competition

  • Best score: 5
  • Best player score: 5
  • Number of attempts: 1
citizen_hacks_2019_challenge2 - 106 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 6
  • Best player score: 6
  • Number of attempts: 2
Add semicolons - 3617 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Number of attempts: 8
Line under headers - 445 entries

Put a line under each header, and remove the other markdown formatting.

  • Best score: 27
  • Best player score: 31
  • Number of attempts: 1
citizen_hacks_2019_challenge4 - 46 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 5
  • Best player score: 5
  • Number of attempts: 1
Vice versa - 6151 entries

Little role switching.

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 7
John
Twitter:

:(){ :|: &};:

entered into 22 challenges

contributed 0 challenges