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

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: 40
  • Position: #45 / 115
  • Number of attempts: 1
Make list of numbers from 1 to 30 more compact, but more confusing - 61 entries

Change the naming logic of numbers to end up with less lines.

  • Best score: 77
  • Best player score: 128
  • Position: #16 / 22
  • Number of attempts: 1
RUST Cargo.toml version to last - 189 entries

RUST Cargo.toml version to last. rusty practice on vimgolf

  • Best score: 16
  • Best player score: 26
  • Position: #51 / 58
  • Number of attempts: 1
Enumerate Bullets - 137 entries

We will need to refer to the bullet points in our document explicitly later, so we need to assign them some ID's!

  • Best score: 20
  • Best player score: 33
  • Position: #28 / 35
  • Number of attempts: 3
Rural Post - 3797 entries

Simple challenge to remove all but the post code on each line

  • Best score: 9
  • Best player score: 12
  • Position: #441 / 938
  • Number of attempts: 3
Yo To Hello - 980 entries

Simply Turn Yo To Hello

  • Best score: 10
  • Best player score: 10
  • Position: #287 / 452
  • Number of attempts: 2
Simple, Practical, and Common - 32765 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: 22
  • Best player score: 26
  • Position: #3620 / 7241
  • Number of attempts: 2
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: 15
  • Position: #908 / 1434
  • Number of attempts: 2
One number per line - 18294 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 23
  • Position: #3049 / 3770
  • 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: 15
  • Position: #185 / 204
  • Number of attempts: 1
Add string initializers to an enum - 726 entries

Change Typescript enum so that it has string initializers.

  • Best score: 21
  • Best player score: 27
  • Position: #164 / 218
  • Number of attempts: 1
Add semicolons - 10467 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 15
  • Position: #2252 / 2966
  • Number of attempts: 1
Box it - 7657 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 34
  • Position: #1554 / 1829
  • Number of attempts: 1
Every other line - 2790 entries

AaAaAaA

  • Best score: 12
  • Best player score: 18
  • Position: #563 / 679
  • Number of attempts: 1
Team names - 1763 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 21
  • Position: #505 / 566
  • Number of attempts: 1
Vice versa - 7449 entries

Little role switching.

  • Best score: 12
  • Best player score: 16
  • Position: #1385 / 2020
  • Number of attempts: 1
Collect List - 4155 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 16
  • Position: #854 / 1161
  • Number of attempts: 3
I forgot quotes - 15666 entries

Oops.

  • Best score: 10
  • Best player score: 18
  • Position: #3317 / 4098
  • Number of attempts: 1
Words in parens - 12690 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 20
  • Position: #3279 / 3906
  • Number of attempts: 1
Manas
Twitter:

Undergrad. at IIITD

entered into 19 challenges

contributed 0 challenges