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

Poorly indented Python comments - 1315 entries

Fix the alignment of some Python comments as quickly as possible.

  • Best score: 15
  • Best player score: 37
  • Position: #138 / 221
  • Number of attempts: 1
Fix the shell script! - 2544 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 34
  • Position: #304 / 589
  • Number of attempts: 1
Satisfy the go linter - 2391 entries

You just came up with this briliant go vars package. But dang, you forgot to add comments to the exported variables. Can you add a comment over each variable with a TODO-placeholder?

  • Best score: 20
  • Best player score: 21
  • Position: #169 / 471
  • Number of attempts: 1
Add quotes to ansible playbook - 952 entries

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

  • Best score: 8
  • Best player score: 10
  • Position: #215 / 304
  • Number of attempts: 1
xrandr outputs and dashes - 704 entries

uh oh, different video drivers identify display outputs with more dashes. Quick, need to change this xrandr script!

  • Best score: 12
  • Best player score: 15
  • Position: #171 / 221
  • Number of attempts: 2
Yo To Hello - 1130 entries

Simply Turn Yo To Hello

  • Best score: 10
  • Best player score: 14
  • Position: #499 / 524
  • Number of attempts: 1
C# data class to F# record - 79 entries

Converting from C# to F# is not hard, but requires some manual labor. Here you should convert from a C# data class to a F# record.

  • Best score: 63
  • Best player score: 83
  • Position: #14 / 18
  • Number of attempts: 1
Simple, Practical, and Common - 33613 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: 25
  • Position: #3243 / 7417
  • Number of attempts: 4
Hogwarts Email Sorting - 925 entries

Given a list of emails, get the students full name and their associated house.

  • Best score: 20
  • Best player score: 22
  • Position: #108 / 261
  • Number of attempts: 1
One number per line - 18725 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 20
  • Position: #2101 / 3862
  • Number of attempts: 1
Quote modules - 1084 entries

Complete golang import statement.

  • Best score: 21
  • Best player score: 27
  • Position: #148 / 281
  • Number of attempts: 1
Quote modules (ver.2) - 239 entries

Complete golang import statement.

  • Best score: 22
  • Best player score: 28
  • Position: #43 / 60
  • Number of attempts: 1
citizen_hacks_2019_challenge2 - 195 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 6
  • Best player score: 7
  • Position: #68 / 102
  • Number of attempts: 1
Unsemantic linewrapping - 928 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: 16
  • Position: #211 / 231
  • Number of attempts: 1
Bad Copy Syntax - 2037 entries

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

  • Best score: 18
  • Best player score: 20
  • Position: #224 / 525
  • Number of attempts: 4
citizen_hacks_2019_challenge3 - 38 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 4
  • Best player score: 4
  • Position: #1 / 35
  • Number of attempts: 1
citizen_hacks_2019_part5 - 32 entries

For the Citizen Hacks 2019 Vim competition

  • Best score: 48
  • Best player score: 66
  • Position: #11 / 11
  • Number of attempts: 1
citizen_hacks_2019_part6 - 30 entries

For the Citizen Hacks 2019 Vim competition

  • Best score: 35
  • Best player score: 73
  • Position: #12 / 12
  • Number of attempts: 1
multiple cursor alternative - 1519 entries

from: https://www.reddit.com/r/vim/comments/6w5pfa/crosspost_from_remacs_how_would_you_do_this_in_vim/

  • Best score: 19
  • Best player score: 23
  • Position: #243 / 380
  • Number of attempts: 3
From argument to object - 1508 entries

This task typifies those programmers endure while coding. This C-family pseudocode needs a function argument to be repurposed as an object call. Simply search and replace? Repeat a pattern of edits?

  • Best score: 17
  • Best player score: 21
  • Position: #359 / 458
  • Number of attempts: 2
Convert Application Output to CSV - 203 entries

Change the application output to comma-separated values

  • Best score: 17
  • Best player score: 19
  • Position: #39 / 56
  • Number of attempts: 1
Un"finnish"ed Work - 116 entries

Replace å by a, ä by a and ö by o.

  • Best score: 14
  • Best player score: 15
  • Position: #22 / 60
  • Number of attempts: 2
Todo list specification - 399 entries

The every item on the todo list must be done today. Modify the list to reflect that.

  • Best score: 37
  • Best player score: 40
  • Position: #154 / 179
  • Number of attempts: 3
For all cases. - 161 entries

In this case... change it! :) Watch the line.

  • Best score: 8
  • Best player score: 8
  • Position: #23 / 106
  • Number of attempts: 1
citizen_hacks_2019_challenge4 - 95 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 5
  • Best player score: 8
  • Position: #57 / 65
  • Number of attempts: 1
One to Ten - 2212 entries

Generate the sequence of numbers from 1 to 10, one number per line. Inspired by this Reddit thread: https://redd.it/ak4it2

  • Best score: 12
  • Best player score: 14
  • Position: #396 / 670
  • Number of attempts: 2
citizen_hacks_2019_challenge5 - 147 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 6
  • Best player score: 7
  • Position: #53 / 77
  • Number of attempts: 1
Build a six - 294 entries

Just enjoy building "a" floors...

  • Best score: 22
  • Best player score: 23
  • Position: #63 / 95
  • Number of attempts: 2
Increment each number - 1023 entries

Increment each number individually by one

  • Best score: 15
  • Best player score: 20
  • Position: #122 / 248
  • Number of attempts: 2
citizen_hacks_2019_challenge6 - 65 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 3
  • Best player score: 3
  • Position: #2 / 51
  • Number of attempts: 1
Delete to the end of the current line - 812 entries

Delete to the end of the current line, but keep the character under the cursor.

  • Best score: 5
  • Best player score: 6
  • Position: #271 / 391
  • Number of attempts: 1
Add Go XML to structure tags - 170 entries

The Go programming language can directly map XML to structure fields. Add the correct XML tag after each field.

  • Best score: 23
  • Best player score: 33
  • Position: #62 / 69
  • Number of attempts: 2
Derek Schrock
Twitter:

FreeBSD and Linux System Admin

entered into 32 challenges

contributed 0 challenges