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

Remove adjacent duplicates - 671 entries

Try to find a way to remove adjacent duplicate letters.

  • Best score: 19
  • Best player score: 52
  • Position: #154 / 168
  • Number of attempts: 1
Deleting text - 329 entries

Delete everything except some specific numbers.

  • Best score: 26
  • Best player score: 61
  • Position: #92 / 103
  • Number of attempts: 1
Quicksort - 2095 entries

We need the numbers in the first row sorted as quickly as possible! Be careful not to disturb the data below the divider though: that must remain unchanged.

  • Best score: 6
  • Best player score: 29
  • Position: #337 / 465
  • Number of attempts: 1
Tic-Tac-Toe Grid Transformation - 449 entries

Your mission is to efficiently convert the original Tic-Tac-Toe grid, represented by 'x's and 'o's, into a neat and well-organized game board.

  • Best score: 56
  • Best player score: 111
  • Position: #42 / 87
  • Number of attempts: 9
Remove line numbers - 778 entries

From http://web.archive.org/web/20140831121704/http://dirac.org/linux/gdb/02a-Memory_Layout_And_The_Stack.php#investigatingthestackwithgdb.

  • Best score: 8
  • Best player score: 47
  • Position: #181 / 205
  • Number of attempts: 1
Find fix point of cos - 1468 entries

Write a function to find the fix point of cos. It is not a good code; It is just to use vim. Inspired by the excellent https://mvanier.livejournal.com/2897.html about the Y combinator.

  • Best score: 14
  • Best player score: 14
  • Position: #38 / 431
  • Number of attempts: 4
Insert column data on Confluence-style table - 500 entries

Add ip addresses into new "IP" column based on the last digits from the "Server" column

  • Best score: 33
  • Best player score: 71
  • Position: #82 / 112
  • Number of attempts: 3
swap number pairs - 2169 entries

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

  • Best score: 16
  • Best player score: 28
  • Position: #223 / 393
  • Number of attempts: 2
Simple, Practical, and Common - 33930 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: 27
  • Position: #4022 / 7490
  • Number of attempts: 5
One number per line - 18840 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 23
  • Position: #3072 / 3893
  • Number of attempts: 6
Unsemantic linewrapping - 943 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: #117 / 235
  • Number of attempts: 10
Add semicolons - 10923 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 13
  • Position: #1993 / 3087
  • Number of attempts: 2
Bad Copy Syntax - 2072 entries

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

  • Best score: 18
  • Best player score: 31
  • Position: #445 / 539
  • Number of attempts: 5
Box it - 7987 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 27
  • Position: #1157 / 1895
  • Number of attempts: 3
Reformat Cura settings - 142 entries

Cura settings are weirdly encoded... After mere replacements, you'll have to enquote two strings (infill_pattern & speed_travel) and dont forget booleans in lowercase. #format #json

  • Best score: 50
  • Best player score: 79
  • Position: #23 / 25
  • Number of attempts: 3
Stefan Krist
Twitter:

Linux nerd. Generally amazing! I work for @AWSCloud & my opinions are my own.

entered into 15 challenges

contributed 0 challenges