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

Even and Odd - 192 entries

separate the even numbers from the odd numbers

  • Best score: 13
  • Best player score: 19
  • Position: #23 / 38
  • Number of attempts: 4
Swap function parameters and delete all comments in python. - 923 entries

Swap function parameters and delete all comments in python.

  • Best score: 19
  • Best player score: 33
  • Position: #167 / 228
  • Number of attempts: 1
Delete the last function argument in python. - 611 entries

Delete the last function argument in this python script.

  • Best score: 6
  • Best player score: 7
  • Position: #155 / 221
  • Number of attempts: 2
YAML to dotenv - 1617 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 22
  • Position: #149 / 339
  • Number of attempts: 1
Change to ascending order - 541 entries

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

  • Best score: 17
  • Best player score: 50
  • Position: #74 / 132
  • Number of attempts: 3
Swap columns and transform to CSV format - 487 entries

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

  • Best score: 16
  • Best player score: 18
  • Position: #95 / 175
  • Number of attempts: 2
Change class fields from camel case to snake case - 664 entries

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

  • Best score: 18
  • Best player score: 33
  • Position: #110 / 153
  • Number of attempts: 1
Change class fields from snake case to camel case - 322 entries

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

  • Best score: 13
  • Best player score: 13
  • Position: #74 / 121
  • Number of attempts: 4
Reorganize Pokémon - 875 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 23
  • Position: #163 / 240
  • Number of attempts: 3
Replace csv column if it's not empty - 310 entries

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

  • Best score: 15
  • Best player score: 25
  • Position: #91 / 100
  • Number of attempts: 1
CaN yOuR ViM dO ThAt? #1 - 297 entries

Tsoding's famous "Can your Vim do that?" https://youtu.be/Bafo3hhheHU?si=DfcT4sUEMTSAevnx&t=1091

  • Best score: 41
  • Best player score: 46
  • Position: #70 / 118
  • Number of attempts: 2
Rearrange array to single level - 1829 entries

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

  • Best score: 14
  • Best player score: 38
  • Position: #247 / 307
  • Number of attempts: 1
Rearrange array to one line - 889 entries

Rearrange the array content on only one line, and remove trailing commas

  • Best score: 13
  • Best player score: 20
  • Position: #112 / 205
  • Number of attempts: 1
Copy punctuation - 739 entries

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

  • Best score: 19
  • Best player score: 35
  • Position: #85 / 181
  • Number of attempts: 1
Deleting text - 350 entries

Delete everything except some specific numbers.

  • Best score: 26
  • Best player score: 47
  • Position: #81 / 113
  • Number of attempts: 1
Lowercase first characters - 509 entries

This is the (abridged) input for Day 3 in Advent of Code 2019. The output is a format more suitable for Prolog programming: the two lines of input become two lists of pairs, joined together in a wires functor.

  • Best score: 33
  • Best player score: 44
  • Position: #131 / 188
  • Number of attempts: 1
Count to 100 in word form - 162 entries

Write all the numbers from 1 to 100, using their word forms rather than the digit form. Most of the parts you will need are included in the input file. Use hyphens when appropriate.

  • Best score: 53
  • Best player score: 165
  • Position: #34 / 35
  • Number of attempts: 1
Yo To Hello - 1156 entries

Simply Turn Yo To Hello

  • Best score: 8
  • Best player score: 12
  • Position: #501 / 537
  • Number of attempts: 1
Add semicolons - 10956 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 14
  • Position: #2200 / 3098
  • Number of attempts: 2
Interleave lines - 209 entries

This is some kind of « paste -d'\n' c b a ». There are many ways to achieve this.. just find the shortest!

  • Best score: 17
  • Best player score: 33
  • Position: #41 / 62
  • Number of attempts: 1
Change name of a variable - 196 entries

Replace the name of the $variable with the fastest move possible. The challenge is having a command that allow you to easily change the variable name even if its indented.

  • Best score: 9
  • Best player score: 9
  • Position: #138 / 147
  • Number of attempts: 1
Reformat long lines - 388 entries

Rearrange this ruby method call to put each parameter on its own line. Could become a useful macro.

  • Best score: 15
  • Best player score: 26
  • Position: #139 / 141
  • Number of attempts: 1
Atharva Mahajan
Github:

entered into 22 challenges

contributed 0 challenges