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

Swap function parameters and delete all comments in python. - 335 entries

Swap function parameters and delete all comments in python.

  • Best score: 19
  • Best player score: 19
  • Position: #14 / 94
  • Number of attempts: 9
Delete the last function argument in python. - 292 entries

Delete the last function argument in this python script.

  • Best score: 6
  • Best player score: 6
  • Position: #40 / 111
  • Number of attempts: 8
Flip All Bits - 202 entries

Perform a bitwise NOT operation on each bit, meaning that bits that are 0 become 1, and those that are 1 become 0.

  • Best score: 26
  • Best player score: 43
  • Position: #32 / 69
  • Number of attempts: 9
Create json from a .env file - 1607 entries

A simple everyday task.

  • Best score: 38
  • Best player score: 46
  • Position: #100 / 390
  • Number of attempts: 8
Sort and Tag - 688 entries

The goal is to sort these lines alphabetically, assign a unique identifier to each line in the format "[01]", "[02]", etc., and then restore the original order of the lines while preserving the assigned identifiers.

  • Best score: 36
  • Best player score: 59
  • Position: #49 / 146
  • Number of attempts: 13
Changing date formats - 713 entries

Change the date format to Y/M/D.

  • Best score: 37
  • Best player score: 93
  • Position: #126 / 198
  • Number of attempts: 3
YAML to dotenv - 1557 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 19
  • Position: #101 / 322
  • Number of attempts: 6
Swap columns and transform to CSV format - 452 entries

Turn this spreadsheet output into a CSV file but first swap the columns

  • Best score: 16
  • Best player score: 16
  • Position: #10 / 164
  • Number of attempts: 8
Generate an entry for each month - 374 entries

The input file contains a URI with a month in it. Generate the URIs for all the other months up to a couple of years

  • Best score: 27
  • Best player score: 56
  • Position: #59 / 93
  • Number of attempts: 2
The Fibonacci Spacer - 164 entries

Split the words, remove punctuation and add spaces before each line following the Fibonacci sequence (0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89)

  • Best score: 14
  • Best player score: 43
  • Position: #19 / 49
  • Number of attempts: 7
Fix the Scala Method - 341 entries

Fix the missing semicolons and the Int type, ensure the floating point division, and remove the unnecessary return.

  • Best score: 2
  • Best player score: 26
  • Position: #71 / 114
  • Number of attempts: 3
Change class fields from camel case to snake case - 630 entries

This is the reverse of the previous challenge: https://www.vimgolf.com/challenges/9v006705493c000000000513

  • Best score: 18
  • Best player score: 18
  • Position: #33 / 144
  • Number of attempts: 7
Replace csv column if it's not empty - 276 entries

Replace the credit_score_percentile column with the value 0.0 but leave the empty ones untouched

  • Best score: 15
  • Best player score: 15
  • Position: #29 / 94
  • Number of attempts: 3
Copy punctuation - 723 entries

I want to copy the last line’s brackets, quotes, and commas to each line. How?

  • Best score: 19
  • Best player score: 25
  • Position: #38 / 176
  • Number of attempts: 7
months to html list items - 1135 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 24
  • Position: #107 / 307
  • Number of attempts: 8
Simple, Practical, and Common - 33964 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: 22
  • Position: #2417 / 7500
  • Number of attempts: 11
Katie Gardner
Github:

entered into 16 challenges

contributed 0 challenges