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 - 428 entries

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

  • Best score: 19
  • Best player score: 26
  • Position: #41 / 96
  • Number of attempts: 11
Plotting some variables in python - 1233 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 / 258
  • Number of attempts: 15
Transpose a python matrix - 608 entries

Rotate the matrix in 90 degrees.

  • Best score: 23
  • Best player score: 59
  • Position: #67 / 109
  • Number of attempts: 3
Create a diamond comment - 239 entries

Encapsulate the text in a diamond pattern.

  • Best score: 27
  • Best player score: 41
  • Position: #35 / 57
  • Number of attempts: 4
Lowercase first characters - 370 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: #57 / 133
  • Number of attempts: 2
Inverting Lines - 1398 entries

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

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

Simple challenge for frequent action while programming.

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

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

  • Best score: 16
  • Best player score: 25
  • Position: #147 / 298
  • Number of attempts: 6
Multiline to Single Line - 538 entries

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

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

Simply Turn Yo To Hello

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

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

  • Best score: 10
  • Best player score: 11
  • Position: #704 / 1477
  • Number of attempts: 5
citizen_hacks_2019_part1 - 35 entries

For the Citizen Hacks 2019 Vim competition

  • Best score: 52
  • Best player score: 54
  • Position: #4 / 13
  • Number of attempts: 4
citizen_hacks_2019_challenge2 - 176 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 6
  • Best player score: 6
  • Position: #54 / 89
  • Number of attempts: 3
Unsemantic linewrapping - 838 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: #140 / 211
  • Number of attempts: 5
Add semicolons - 10707 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1731 / 3013
  • Number of attempts: 4
Bad Copy Syntax - 1947 entries

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

  • Best score: 18
  • Best player score: 20
  • Position: #260 / 494
  • Number of attempts: 8
citizen_hacks_2019_part2 - 18 entries

For the Citizen Hacks 2019 Vim competition

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

Clean and group.

  • Best score: 17
  • Best player score: 19
  • Position: #95 / 167
  • Number of attempts: 4
citizen_hacks_2019_challenge4 - 76 entries

For the Citizen Hacks 2019 Vim competition.

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

For the Citizen Hacks 2019 Vim competition.

  • Best score: 6
  • Best player score: 7
  • Position: #56 / 64
  • Number of attempts: 2
Line under headers - 1926 entries

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

  • Best score: 24
  • Best player score: 26
  • Position: #78 / 474
  • Number of attempts: 10
citizen_hacks_2019_challenge6 - 52 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 3
  • Best player score: 3
  • Position: #35 / 42
  • Number of attempts: 1
Song Transcription Oops - 225 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 / 70
  • Number of attempts: 3
citizen_hacks_2019_challenge1 - 41 entries

For the Citizen Hacks 2019 Vim competition

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

entered into 24 challenges

contributed 0 challenges