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

Find the devices that have no revoked time, and extract out the duration left on their leases. - 122 entries

Extract non-revoked devices and the duration of their leases.

  • Best score: 50
  • Best player score: 96
  • Position: #31 / 36
  • 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: 25
  • Position: #25 / 249
  • Number of attempts: 5
π - 298 entries

1200 π chars

  • Best score: 16
  • Best player score: 1215
  • Position: #65 / 71
  • Number of attempts: 2
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: 78
  • Position: #145 / 279
  • Number of attempts: 4
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: 40
  • Position: #23 / 145
  • Number of attempts: 2
Changing date formats - 710 entries

Change the date format to Y/M/D.

  • Best score: 37
  • Best player score: 46
  • Position: #31 / 197
  • Number of attempts: 9
Fix the git merge conflicts - 332 entries

Solve the merge conflicts in the Python file

  • Best score: 36
  • Best player score: 44
  • Position: #18 / 98
  • Number of attempts: 4
Replace markdown sections with numbering - 309 entries

Replace each section and subsection with their respective numbers

  • Best score: 29
  • Best player score: 35
  • Position: #10 / 85
  • Number of attempts: 4
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: 25
  • Position: #60 / 112
  • Number of attempts: 3
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: 18
  • Position: #5 / 140
  • Number of attempts: 6
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: 13
  • Position: #5 / 115
  • Number of attempts: 3
Reorganize Pokémon - 829 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 18
  • Position: #6 / 226
  • Number of attempts: 4
Replace csv column if it's not empty - 270 entries

Replace the credit_score_percentile column with the value 0.0 but leave the empty ones untouched

  • Best score: 15
  • Best player score: 15
  • Position: #5 / 92
  • Number of attempts: 4
Remove adjacent duplicates - 692 entries

Try to find a way to remove adjacent duplicate letters.

  • Best score: 19
  • Best player score: 38
  • Position: #129 / 173
  • Number of attempts: 2
Rearrange array to single level - 1791 entries

The goal is to flatten the array into a single list and remove any empty elements.

  • Best score: 14
  • Best player score: 80
  • Position: #281 / 299
  • Number of attempts: 1
Column wise pasting - 256 entries

Make a table from 3 columns

  • Best score: 17
  • Best player score: 17
  • Position: #6 / 53
  • Number of attempts: 10
Evil Numbers - 115 entries

Print the first 100 evil numbers https://oeis.org/A001969. This is an advert for code.golf https://code.golf/evil-numbers#viml

  • Best score: 25
  • Best player score: 123
  • Position: #23 / 27
  • Number of attempts: 5
Morse - 178 entries

Translate Morse code to Text

  • Best score: 31
  • Best player score: 190
  • Position: #33 / 36
  • Number of attempts: 3
New teacher - 1480 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 19
  • Position: #28 / 310
  • Number of attempts: 16
Find fix point of cos - 1480 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: 14
  • Position: #76 / 432
  • Number of attempts: 13
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: #228 / 325
  • Number of attempts: 2
ProGamerYeet
Github:

entered into 21 challenges

contributed 0 challenges