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

Learn to ask for :help - 180 entries

Learn to use the help to reduce your strokes...

  • Best score: 19
  • Best player score: 26
  • Position: #24 / 42
  • Number of attempts: 11
Plotting some variables in python - 569 entries

4 sets of (x,y) variables to plot. Just increment the numbers! Well, let's change the colors of the lines as well. Oh and we meant to plot the absolute values of course.

  • Best score: 34
  • Best player score: 34
  • Position: #19 / 115
  • Number of attempts: 15
Transpose a python matrix - 323 entries

Rotate the matrix in 90 degrees.

  • Best score: 23
  • Best player score: 59
  • Position: #41 / 63
  • Number of attempts: 3
Create a diamond comment - 133 entries

Encapsulate the text in a diamond pattern.

  • Best score: 27
  • Best player score: 41
  • Position: #25 / 36
  • Number of attempts: 4
Lowercase first characters - 185 entries

This is the (abridged) input for Day 3 in Advent of Code 2019. The output is a format more suitable for Prolog programming: the two lines of input become two lists of pairs, joined together in a wires functor.

  • Best score: 33
  • Best player score: 37
  • Position: #32 / 70
  • Number of attempts: 2
Inverting Lines - 964 entries

A simple challenge to invert all lines, except the first.

  • Best score: 10
  • Best player score: 10
  • Position: #103 / 264
  • Number of attempts: 2
Making 3 line function a one liner. - 80 entries

Simple challenge for frequent action while programming.

  • Best score: 4
  • Best player score: 4
  • Position: #49 / 61
  • Number of attempts: 1
swap number pairs - 1254 entries

Swap the numbers in a bunch of 2-element arrays.

  • Best score: 16
  • Best player score: 25
  • Position: #116 / 237
  • Number of attempts: 6
Multiline to Single Line - 374 entries

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

  • Best score: 5
  • Best player score: 5
  • Position: #148 / 177
  • Number of attempts: 4
Yo To Hello - 980 entries

Simply Turn Yo To Hello

  • Best score: 10
  • Best player score: 10
  • Position: #332 / 452
  • Number of attempts: 1
prepend * to every non-blank line - 5829 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #691 / 1434
  • Number of attempts: 5
citizen_hacks_2019_part1 - 19 entries

For the Citizen Hacks 2019 Vim competition

  • Best score: 52
  • Best player score: 54
  • Position: #3 / 9
  • Number of attempts: 4
citizen_hacks_2019_challenge2 - 163 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 6
  • Best player score: 6
  • Position: #54 / 82
  • Number of attempts: 3
Unsemantic linewrapping - 818 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
  • Position: #136 / 204
  • Number of attempts: 5
Add semicolons - 10467 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1709 / 2966
  • Number of attempts: 4
Bad Copy Syntax - 1899 entries

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

  • Best score: 18
  • Best player score: 20
  • Position: #250 / 483
  • Number of attempts: 8
citizen_hacks_2019_part2 - 10 entries

For the Citizen Hacks 2019 Vim competition

  • Best score: 41
  • Best player score: 41
  • Position: #3 / 5
  • Number of attempts: 2
Two pairs of cluster of letters creates word - 706 entries

Clean and group.

  • Best score: 17
  • Best player score: 19
  • Position: #94 / 165
  • Number of attempts: 4
citizen_hacks_2019_challenge4 - 69 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 5
  • Best player score: 5
  • Position: #39 / 48
  • Number of attempts: 2
citizen_hacks_2019_challenge5 - 111 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 6
  • Best player score: 7
  • Position: #51 / 58
  • Number of attempts: 2
Line under headers - 1869 entries

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

  • Best score: 24
  • Best player score: 26
  • Position: #74 / 463
  • Number of attempts: 10
citizen_hacks_2019_challenge6 - 44 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 3
  • Best player score: 3
  • Position: #35 / 38
  • Number of attempts: 1
Song Transcription Oops - 221 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
  • Position: #52 / 67
  • Number of attempts: 3
citizen_hacks_2019_challenge1 - 31 entries

For the Citizen Hacks 2019 Vim competition

  • Best score: 5
  • Best player score: 5
  • Position: #23 / 27
  • Number of attempts: 1
Peter Pandorum
Twitter:

entered into 24 challenges

contributed 0 challenges