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

Swap function parameters and delete all comments in python.

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

Delete the last function argument in this python script.

  • Best score: 6
  • Best player score: 8
  • Position: #47 / 58
  • Number of attempts: 1
From brakets to parens - 1134 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: #247 / 249
  • Number of attempts: 3
Create json from a .env file - 1585 entries

A simple everyday task.

  • Best score: 39
  • Best player score: 93
  • Position: #317 / 376
  • Number of attempts: 1
Reordering properties - 1221 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: #211 / 280
  • Number of attempts: 1
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: 90
  • Position: #79 / 145
  • Number of attempts: 1
Changing date formats - 710 entries

Change the date format to Y/M/D.

  • Best score: 37
  • Best player score: 127
  • Position: #161 / 197
  • Number of attempts: 1
YAML to dotenv - 1542 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 49
  • Position: #280 / 316
  • Number of attempts: 1
Change to ascending order - 500 entries

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

  • Best score: 17
  • Best player score: 200
  • Position: #117 / 125
  • Number of attempts: 1
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: 30
  • Position: #146 / 162
  • Number of attempts: 2
Fix the git merge conflicts - 332 entries

Solve the merge conflicts in the Python file

  • Best score: 36
  • Best player score: 59
  • Position: #56 / 98
  • Number of attempts: 1
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: 30
  • Position: #89 / 112
  • Number of attempts: 1
Change class fields from camel case to snake case - 617 entries

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

  • Best score: 18
  • Best player score: 36
  • Position: #105 / 140
  • Number of attempts: 2
Encar Salazar
Github:

entered into 13 challenges

contributed 0 challenges