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

Inverting Lines - 519 entries

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

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 2
Generate a very basic Python constructor - 43 entries

I actually needed to do this myself, so I look forward to learning how.

  • Best score: 38
  • Best player score: 38
  • Number of attempts: 5
Python dataclasses - 129 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 25
  • Number of attempts: 4
Enumerate Bullets - 78 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: 20
  • Number of attempts: 8
HS Final exam vimgolf - 463 entries

Change the initial file to a single line containing all names comma-separated with numbers inside parentheses.

  • Best score: 21
  • Best player score: 23
  • Number of attempts: 3
Add quotes to ansible playbook - 449 entries

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

  • Best score: 8
  • Best player score: 9
  • Number of attempts: 3
Multiline to Single Line - 282 entries

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

  • Best score: 5
  • Best player score: 5
  • Number of attempts: 1
Data reformat - 199 entries

Reformat this copy-paste data! #csv

  • Best score: 38
  • Best player score: 39
  • Number of attempts: 8
xrandr outputs and dashes - 498 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: 12
  • Number of attempts: 4
Capitalize the Names - 211 entries

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

  • Best score: 3
  • Best player score: 21
  • Number of attempts: 7
C# function to F# - 7 entries

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

  • Best score: 108
  • Best player score: 108
  • Number of attempts: 3
C# data class to F# record - 51 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: 69
  • Number of attempts: 3
Alphabet soup - 312 entries

Create a column of all alphabet characters organized in a funky way

  • Best score: 25
  • Best player score: 26
  • Number of attempts: 7
Reconstruct the actual output from my unit test tool report - 115 entries

When a test fails, my unit test tool reports differences between the actual output and the expected output as follow: - line in the expected output but missing in the actual output are prefixed with a dash - unexpected lines in the actual output are prefixed with a plus sign - comments added by the unit test tool are prefixed with a question mark - common lines are showed `as-is` (well, almost;) From that "diff" format, I would like to reconstruct the actual output.

  • Best score: 16
  • Best player score: 20
  • Number of attempts: 2
Right Align Part of the line - 49 entries

The challenge is to right align a part of the line - this is useful in some SQL queries where it's more clear which are the fields displayed

  • Best score: 19
  • Best player score: 21
  • Number of attempts: 4
Triangle of arrows - 101 entries

I made this by accident when working on another challenge. How would you go about making this?

  • Best score: 14
  • Best player score: 16
  • Number of attempts: 7
calculations - 244 entries

Complete these (weird) calculations.

  • Best score: 38
  • Best player score: 38
  • Number of attempts: 5
citizen_hacks_2019_challenge6 - 40 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 3
  • Best player score: 3
  • Number of attempts: 1
citizen_hacks_2019_challenge5 - 106 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 6
  • Best player score: 6
  • Number of attempts: 3
citizen_hacks_2019_challenge4 - 63 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 5
  • Best player score: 5
  • Number of attempts: 1
citizen_hacks_2019_challenge2 - 156 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 6
  • Best player score: 7
  • Number of attempts: 1
ascii-art diamond - 34 entries

Simple ascii-art diamond. The grid is 40x40.

  • Best score: 40
  • Best player score: 41
  • Number of attempts: 1
hamb
Twitter:

entered into 22 challenges

contributed 0 challenges