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

Reformat symbols in list - 1482 entries

Saw this in some lecture, easy reformatting using multiple cursor in VS Code

  • Best score: 24
  • Best player score: 37
  • Position: #229 / 328
  • Number of attempts: 2
delete swap - 1621 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #97 / 505
  • Number of attempts: 6
Generate a very basic Python constructor (fixed) - 1219 entries

Original by @BiddulphCaleb (http://www.vimgolf.com/challenges/6019f1c4642668000cee11e8) - had some extra spaces in output file.

  • Best score: 29
  • Best player score: 60
  • Position: #213 / 257
  • Number of attempts: 2
swap number pairs - 2022 entries

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

  • Best score: 16
  • Best player score: 25
  • Position: #184 / 373
  • Number of attempts: 4
Add quotes to ansible playbook - 940 entries

You created an ansible playbook, but forgot to add quotes. Can you fix it?

  • Best score: 8
  • Best player score: 10
  • Position: #242 / 300
  • Number of attempts: 4
Multiline to Single Line - 679 entries

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

  • Best score: 5
  • Best player score: 5
  • Position: #205 / 297
  • Number of attempts: 2
Capitalize the Names - 382 entries

I want to capitalize the names in quotes, but just the people's names, not the file names.

  • Best score: 21
  • Best player score: 49
  • Position: #82 / 95
  • Number of attempts: 4
Yo To Hello - 1125 entries

Simply Turn Yo To Hello

  • Best score: 10
  • Best player score: 10
  • Position: #368 / 521
  • Number of attempts: 1
Get mail address from outlook format - 641 entries

Create a mail list space separated of mail list formatted by outlook

  • Best score: 15
  • Best player score: 18
  • Position: #141 / 201
  • Number of attempts: 2
Unsemantic linewrapping - 901 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: #150 / 226
  • Number of attempts: 5
Add string initializers to an enum - 865 entries

Change Typescript enum so that it has string initializers.

  • Best score: 21
  • Best player score: 22
  • Position: #97 / 255
  • Number of attempts: 5
Extract wireshark capture filter - 202 entries

Extract wireshark capture filter from IP plan

  • Best score: 25
  • Best player score: 31
  • Position: #52 / 68
  • Number of attempts: 2
Song Transcription Oops - 235 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: 34
  • Position: #71 / 76
  • Number of attempts: 1
citizen_hacks_2019_challenge1 - 50 entries

For the Citizen Hacks 2019 Vim competition

  • Best score: 5
  • Best player score: 5
  • Position: #27 / 44
  • Number of attempts: 1
Ilay Skutelsky
Twitter:

entered into 14 challenges

contributed 0 challenges