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. - 643 entries

Swap function parameters and delete all comments in python.

  • Best score: 19
  • Best player score: 28
  • Position: #92 / 173
  • Number of attempts: 3
Delete the last function argument in python. - 484 entries

Delete the last function argument in this python script.

  • Best score: 6
  • Best player score: 8
  • Position: #127 / 177
  • Number of attempts: 1
Find the devices that have no revoked time, and extract out the duration left on their leases. - 169 entries

Extract non-revoked devices and the duration of their leases.

  • Best score: 50
  • Best player score: 262
  • Position: #46 / 48
  • Number of attempts: 3
Convert list of enums to list of localization terms - 183 entries

While making my game Piloteer, I had a large list of TaskTypes and needed to convert them to an equivalent list of localization terms, to be used when translating the game's text into different languages.

  • Best score: 75
  • Best player score: 130
  • Position: #45 / 60
  • Number of attempts: 2
From brakets to parens - 1249 entries

This is one of the most common problem when you wrap an array for error handling. Vim is useful when you convert foo[i][j][k] into foo(i, j, k) for many times.

  • Best score: 24
  • Best player score: 221
  • Position: #275 / 277
  • Number of attempts: 3
Create json from a .env file - 1637 entries

A simple everyday task.

  • Best score: 38
  • Best player score: 93
  • Position: #339 / 401
  • Number of attempts: 1
Reordering properties - 1308 entries

Arrange the CSS lines for the #topbar selector based on their complete line length, from shortest to longest.

  • Best score: 24
  • Best player score: 105
  • Position: #223 / 293
  • Number of attempts: 1
Sort and Tag - 703 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: 90
  • Position: #82 / 151
  • Number of attempts: 1
Changing date formats - 725 entries

Change the date format to Y/M/D.

  • Best score: 37
  • Best player score: 127
  • Position: #168 / 204
  • Number of attempts: 1
YAML to dotenv - 1581 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 49
  • Position: #294 / 330
  • Number of attempts: 1
Change to ascending order - 516 entries

Change each line of numbers consistently from descending to ascending order.

  • Best score: 17
  • Best player score: 200
  • Position: #121 / 129
  • Number of attempts: 1
Swap columns and transform to CSV format - 460 entries

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

  • Best score: 16
  • Best player score: 30
  • Position: #150 / 168
  • Number of attempts: 2
Generate an entry for each month - 384 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: 88
  • Position: #81 / 95
  • Number of attempts: 2
Fix the git merge conflicts - 342 entries

Solve the merge conflicts in the Python file

  • Best score: 36
  • Best player score: 59
  • Position: #58 / 102
  • Number of attempts: 1
Replace markdown sections with numbering - 321 entries

Replace each section and subsection with their respective numbers

  • Best score: 29
  • Best player score: 57
  • Position: #37 / 89
  • Number of attempts: 5
Fix the Scala Method - 350 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: 30
  • Position: #92 / 117
  • Number of attempts: 1
Change class fields from camel case to snake case - 651 entries

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

  • Best score: 18
  • Best player score: 36
  • Position: #111 / 149
  • Number of attempts: 2
Change class fields from snake case to camel case - 318 entries

Change the class fields in this Scala class from snake case to camel case

  • Best score: 13
  • Best player score: 24
  • Position: #113 / 120
  • Number of attempts: 1
Reorganize Pokémon - 858 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 40
  • Position: #223 / 235
  • Number of attempts: 1
Replace csv column if it's not empty - 293 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: #43 / 97
  • Number of attempts: 6
Convert plain text into a markdown table - 102 entries

Convert the table to markdown to make it more usable

  • Best score: 56
  • Best player score: 153
  • Position: #24 / 33
  • Number of attempts: 4
Encar Salazar
Github:

entered into 21 challenges

contributed 0 challenges