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 - 1220 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: 129
  • Position: #249 / 279
  • Number of attempts: 2
Sort and Tag - 685 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: 522
  • Position: #145 / 145
  • Number of attempts: 1
YAML to dotenv - 1542 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 18
  • Position: #91 / 316
  • Number of attempts: 6
Swap columns and transform to CSV format - 447 entries

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

  • Best score: 16
  • Best player score: 18
  • Position: #83 / 162
  • Number of attempts: 2
Fix the Scala Method - 338 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: 31
  • Position: #91 / 112
  • Number of attempts: 7
Change class fields from snake case to camel case - 312 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #82 / 115
  • Number of attempts: 2
Surround the 'z' character with brackets, quotes, and print as formatted string. - 577 entries

Surround the 'z' character with brackets, quotes, and print as formatted string.

  • Best score: 17
  • Best player score: 17
  • Position: #243 / 325
  • Number of attempts: 3
Paste a column after a column - 2662 entries

This task is very common while using multi-cursor. What is the elegant vim way ?

  • Best score: 14
  • Best player score: 24
  • Position: #404 / 576
  • Number of attempts: 2
Reformat symbols in list - 1649 entries

Saw this in some lecture, easy reformatting using multiple cursor in VS Code

  • Best score: 24
  • Best player score: 201
  • Position: #354 / 355
  • Number of attempts: 1
Atharva
Github:

entered into 9 challenges

contributed 0 challenges