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

From brakets to parens - 887 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: 41
  • Position: #139 / 208
  • Number of attempts: 2
π - 247 entries

1200 π chars

  • Best score: 16
  • Best player score: 52
  • Position: #47 / 61
  • Number of attempts: 1
Create json from a .env file - 1499 entries

A simple everyday task.

  • Best score: 39
  • Best player score: 67
  • Position: #212 / 349
  • Number of attempts: 1
Reordering properties - 1128 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: 67
  • Position: #113 / 266
  • Number of attempts: 1
Changing date formats - 686 entries

Change the date format to Y/M/D.

  • Best score: 37
  • Best player score: 65
  • Position: #67 / 187
  • Number of attempts: 1
YAML to dotenv - 1436 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 23
  • Position: #142 / 296
  • Number of attempts: 2
Change to ascending order - 484 entries

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

  • Best score: 17
  • Best player score: 51
  • Position: #70 / 118
  • Number of attempts: 1
Swap columns and transform to CSV format - 411 entries

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

  • Best score: 16
  • Best player score: 17
  • Position: #71 / 152
  • Number of attempts: 2
Generate an entry for each month - 364 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: 32
  • Position: #19 / 90
  • Number of attempts: 3
Fix the git merge conflicts - 311 entries

Solve the merge conflicts in the Python file

  • Best score: 36
  • Best player score: 55
  • Position: #40 / 88
  • Number of attempts: 1
The Fibonacci Spacer - 157 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: 25
  • Best player score: 75
  • Position: #39 / 47
  • Number of attempts: 1
Change class fields from camel case to snake case - 551 entries

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

  • Best score: 18
  • Best player score: 21
  • Position: #59 / 129
  • Number of attempts: 2
Reorganize Pokémon - 762 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 24
  • Position: #158 / 211
  • Number of attempts: 2
extract struct tag in go - 149 entries

Can you extract all struct tags in the fewest keystrokes possible?

  • Best score: 29
  • Best player score: 40
  • Position: #20 / 41
  • Number of attempts: 2
Move list of uuids into a SQL query - 223 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: 68
  • Position: #46 / 72
  • Number of attempts: 2
Markdown Blog Editing - 456 entries

Convert the given link text in start file to a markdown link list.

  • Best score: 30
  • Best player score: 44
  • Position: #49 / 107
  • Number of attempts: 2
Remove adjacent duplicates - 666 entries

Try to find a way to remove adjacent duplicate letters.

  • Best score: 19
  • Best player score: 21
  • Position: #58 / 167
  • Number of attempts: 5
Rearrange array to one line - 805 entries

Rearrange the array content on only one line, and remove trailing commas

  • Best score: 13
  • Best player score: 20
  • Position: #101 / 189
  • Number of attempts: 1
Rafe Murray
Github:

entered into 18 challenges

contributed 0 challenges