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

Fix the Scala Method - 162 entries

Fix the missing semicolons and the Int type, ensure the floating point division, and remove the unnecessary return.

  • Best score: 9
  • Best player score: 22
  • Position: #3 / 54
  • Number of attempts: 3
Change class fields from camel case to snake case - 360 entries

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

  • Best score: 18
  • Best player score: 18
  • Position: #12 / 91
  • Number of attempts: 10
Change class fields from snake case to camel case - 187 entries

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

  • Best score: 13
  • Best player score: 13
  • Position: #21 / 72
  • Number of attempts: 2
Reorganize Pokémon - 465 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 21
  • Position: #52 / 127
  • Number of attempts: 2
Replace csv column if it's not empty - 145 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: #10 / 53
  • Number of attempts: 3
Remove adjacent duplicates - 531 entries

Try to find a way to remove adjacent duplicate letters.

  • Best score: 19
  • Best player score: 20
  • Position: #23 / 137
  • Number of attempts: 5
Rearrange array to single level - 1396 entries

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

  • Best score: 14
  • Best player score: 31
  • Position: #148 / 229
  • Number of attempts: 3
Copy punctuation - 521 entries

I want to copy the last line’s brackets, quotes, and commas to each line. How?

  • Best score: 19
  • Best player score: 40
  • Position: #78 / 133
  • Number of attempts: 2
New teacher - 1101 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 26
  • Position: #132 / 236
  • Number of attempts: 5
EDN reformat - 1158 entries

The goal is to make the code more readable and concise while maintaining its functionality.

  • Best score: 17
  • Best player score: 41
  • Position: #138 / 164
  • Number of attempts: 5
Find fix point of cos - 1408 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: 16
  • Position: #280 / 418
  • Number of attempts: 2
Surround the 'z' character with brackets, quotes, and print as formatted string. - 561 entries

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

  • Best score: 17
  • Best player score: 17
  • Position: #230 / 314
  • Number of attempts: 3
Applying same text modification in several lines - 2893 entries

Remove identical text at the beginning of several lines and the closing parenthesis.

  • Best score: 12
  • Best player score: 24
  • Position: #771 / 856
  • Number of attempts: 2
remove lines containing the word "reader" - 3604 entries

easy stuff

  • Best score: 9
  • Best player score: 10
  • Position: #864 / 1169
  • Number of attempts: 2
SFD-ROC: The Quick Brown Fox - 200 entries

Someone has vandalized our text (again). Please fix to read: The Quick Brown Fox Jumps Over The Lazy Dog.

  • Best score: 24
  • Best player score: 28
  • Position: #81 / 107
  • Number of attempts: 4
Switch function arguments - 2140 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 12
  • Position: #338 / 664
  • Number of attempts: 5
Remove semicolons after expressions - 654 entries

A follow-up for http://vimgolf.com/challenges/4fc9d767d3a0d4000100000e.

  • Best score: 6
  • Best player score: 6
  • Position: #138 / 263
  • Number of attempts: 6
Make it more readable - 2009 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 13
  • Position: #115 / 652
  • Number of attempts: 10
remove dupes from array - 1358 entries

given a random string that contains a ruby-esque array, make sure that there are no duplicate elements

  • Best score: 17
  • Best player score: 20
  • Position: #140 / 336
  • Number of attempts: 4
demouo
Github:

entered into 19 challenges

contributed 0 challenges