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 - 393 entries

separate the even numbers from the odd numbers

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

Swap function parameters and delete all comments in python.

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

Delete the last function argument in this python script.

  • Best score: 6
  • Best player score: 7
  • Position: #180 / 262
  • Number of attempts: 2
YAML to dotenv - 1654 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 22
  • Position: #153 / 347
  • Number of attempts: 1
Change to ascending order - 566 entries

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

  • Best score: 17
  • Best player score: 50
  • Position: #77 / 138
  • Number of attempts: 3
Swap columns and transform to CSV format - 516 entries

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

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

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

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

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

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

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 23
  • Position: #168 / 251
  • Number of attempts: 4
Replace csv column if it's not empty - 317 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: #94 / 103
  • Number of attempts: 1
CaN yOuR ViM dO ThAt? #1 - 309 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: #72 / 123
  • Number of attempts: 2
Rearrange array to single level - 1832 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: #248 / 308
  • Number of attempts: 1
Rearrange array to one line - 907 entries

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

  • Best score: 13
  • Best player score: 20
  • Position: #115 / 209
  • Number of attempts: 1
Copy punctuation - 760 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: #89 / 188
  • Number of attempts: 1
Deleting text - 360 entries

Delete everything except some specific numbers.

  • Best score: 26
  • Best player score: 47
  • Position: #83 / 117
  • 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 - 10966 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 14
  • Position: #2202 / 3100
  • Number of attempts: 2
Interleave lines - 210 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: #42 / 63
  • Number of attempts: 1
Change name of a variable - 197 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 / 148
  • Number of attempts: 1
Reformat long lines - 390 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: #140 / 142
  • Number of attempts: 1
Atharva Mahajan
Github:

entered into 22 challenges

contributed 0 challenges