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

Reordering properties - 789 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: 76
  • Position: #90 / 185
  • Number of attempts: 3
Changing date formats - 414 entries

Change the date format to Y/M/D.

  • Best score: 37
  • Best player score: 79
  • Position: #66 / 131
  • Number of attempts: 1
YAML to dotenv - 884 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 34
  • Position: #148 / 197
  • Number of attempts: 1
Change to ascending order - 342 entries

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

  • Best score: 17
  • Best player score: 39
  • Position: #31 / 90
  • Number of attempts: 1
Nested JSON Flattener - 76 entries

Transform a deeply nested JSON structure into a flattened key-value format where each path is represented by dot notation

  • Best score: 44
  • Best player score: 69
  • Position: #11 / 21
  • Number of attempts: 4
Replace markdown sections with numbering - 205 entries

Replace each section and subsection with their respective numbers

  • Best score: 29
  • Best player score: 124
  • Position: #57 / 61
  • Number of attempts: 3
Change class fields from camel case to snake case - 453 entries

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

  • Best score: 18
  • Best player score: 32
  • Position: #77 / 109
  • Number of attempts: 2
Move list of uuids into a SQL query - 154 entries

Take the list of UUIDs and use them as a filter in the where statement of a SQL query

  • Best score: 57
  • Best player score: 80
  • Position: #49 / 52
  • Number of attempts: 1
Word completion - 233 entries

Try to complete these options within 20 keystrokes.

  • Best score: 20
  • Best player score: 22
  • Position: #20 / 63
  • Number of attempts: 4
Copy punctuation - 574 entries

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

  • Best score: 19
  • Best player score: 30
  • Position: #53 / 145
  • Number of attempts: 2
Column wise pasting - 229 entries

Make a table from 3 columns

  • Best score: 17
  • Best player score: 37
  • Position: #35 / 49
  • Number of attempts: 2
Quicksort - 2035 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: 38
  • Position: #391 / 450
  • Number of attempts: 1
Align commas - 1097 entries

There are 15,000 aligning challenges on vimgolf.com, and they're all exactly the same. I hope this one is a little different.

  • Best score: 11
  • Best player score: 26
  • Position: #238 / 247
  • Number of attempts: 2
Entries sort - 93 entries

It cames to my mind a weird idea : sorting parts of my .vimrc. Take few minutes to sort out this, it's easy !

  • Best score: 14
  • Best player score: 19
  • Position: #39 / 41
  • Number of attempts: 3
Shuffle and Sort - 233 entries

The values where sorted incorrectly. Get them back to how they are supposed to be

  • Best score: 17
  • Best player score: 30
  • Position: #63 / 69
  • Number of attempts: 2
Ming
Github:

entered into 15 challenges

contributed 0 challenges