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

Filename Flip - 160 entries

Rearrange the MP3 filenames so that the identifier comes before the name.

  • Best score: 15
  • Best player score: 19
  • Position: #26 / 56
  • Number of attempts: 2
Filling braces - 460 entries

Inspired by a question on CoDidact (https://software.codidact.com/posts/296501), I wondered if Vim could offer a satisfactory ‘solution’ to this problem.

  • Best score: 24
  • Best player score: 30
  • Position: #87 / 151
  • Number of attempts: 3
Swap function parameters and delete all comments in python. - 1064 entries

Swap function parameters and delete all comments in python.

  • Best score: 19
  • Best player score: 19
  • Position: #58 / 261
  • Number of attempts: 6
Create json from a .env file - 1773 entries

A simple everyday task.

  • Best score: 38
  • Best player score: 49
  • Position: #129 / 431
  • Number of attempts: 3
YAML to dotenv - 1654 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 23
  • Position: #170 / 347
  • Number of attempts: 11
Swap columns and transform to CSV format - 516 entries

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

  • Best score: 16
  • Best player score: 17
  • Position: #85 / 184
  • Number of attempts: 7
Move list of uuids into a SQL query - 254 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: 67
  • Position: #44 / 83
  • Number of attempts: 2
Column wise pasting - 282 entries

Make a table from 3 columns

  • Best score: 17
  • Best player score: 33
  • Position: #38 / 63
  • Number of attempts: 6
Find fix point of cos - 1486 entries

Write a function to find the fix point of cos. It is not a good code; It is just to use vim. Inspired by the excellent https://mvanier.livejournal.com/2897.html about the Y combinator.

  • Best score: 14
  • Best player score: 58
  • Position: #405 / 435
  • Number of attempts: 2
Join 'em - 261 entries

This shouldn't be too tough

  • Best score: 4
  • Best player score: 4
  • Position: #33 / 159
  • Number of attempts: 1
I forgot quotes - 16255 entries

Oops.

  • Best score: 10
  • Best player score: 13
  • Position: #1450 / 4229
  • Number of attempts: 5
quotes inside quotes - 3209 entries

taken from tip 85 of the very good book 'Practical Vim: Edit Text at the Speed of Thought' ! I'd be interested what people use :)

  • Best score: 14
  • Best player score: 14
  • Position: #374 / 1096
  • Number of attempts: 5
Words in parens - 13063 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 13
  • Position: #35 / 3995
  • Number of attempts: 4
Koki
Github:

entered into 13 challenges

contributed 0 challenges