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

Create json from a .env file - 1303 entries

A simple everyday task.

  • Best score: 39
  • Best player score: 80
  • Position: #227 / 303
  • Number of attempts: 1
Change class fields from snake case to camel case - 276 entries

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

  • Best score: 13
  • Best player score: 20
  • Position: #87 / 103
  • Number of attempts: 1
Reorganize Pokémon - 691 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 22
  • Position: #120 / 190
  • Number of attempts: 3
Replace csv column if it's not empty - 248 entries

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

  • Best score: 15
  • Best player score: 30
  • Position: #78 / 83
  • Number of attempts: 1
extract struct tag in go - 142 entries

Can you extract all struct tags in the fewest keystrokes possible?

  • Best score: 29
  • Best player score: 40
  • Position: #19 / 36
  • Number of attempts: 1
CaN yOuR ViM dO ThAt? #2 - 84 entries

Tsoding's famous "Can your Vim do that?" https://www.youtube.com/watch?v=F4xc4jQO7ck&t=1429s

  • Best score: 49
  • Best player score: 74
  • Position: #16 / 21
  • Number of attempts: 2
CaN yOuR ViM dO ThAt? #1 - 236 entries

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

  • Best score: 41
  • Best player score: 45
  • Position: #31 / 91
  • Number of attempts: 3
Append leading hyphen count to each line - 108 entries

Append the number of leading hyphens to the end of each line.

  • Best score: 23
  • Best player score: 27
  • Position: #21 / 31
  • Number of attempts: 4
Move list of uuids into a SQL query - 196 entries

Take the list of UUIDs and use them as a filter in the where statement of a SQL query

  • Best score: 57
  • Best player score: 71
  • Position: #49 / 66
  • Number of attempts: 1
Word completion - 279 entries

Try to complete these options within 20 keystrokes.

  • Best score: 20
  • Best player score: 138
  • Position: #63 / 72
  • Number of attempts: 1
Search different SQL column with similar where clause - 314 entries

Replace a column in the where clause and convert all numbers from text to numeric, by replacing the leading 0 with the code 359.

  • Best score: 22
  • Best player score: 23
  • Position: #25 / 69
  • Number of attempts: 4
Move to corresponding lines - 285 entries

Move the values to the corresponding lines.

  • Best score: 16
  • Best player score: 35
  • Position: #57 / 66
  • Number of attempts: 1
Rearrange array to single level - 1631 entries

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

  • Best score: 14
  • Best player score: 18
  • Position: #53 / 271
  • Number of attempts: 9
Rearrange array to one line - 758 entries

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

  • Best score: 13
  • Best player score: 18
  • Position: #64 / 182
  • Number of attempts: 5
Copy punctuation - 655 entries

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

  • Best score: 19
  • Best player score: 47
  • Position: #115 / 158
  • Number of attempts: 1
Column wise pasting - 240 entries

Make a table from 3 columns

  • Best score: 17
  • Best player score: 18
  • Position: #12 / 51
  • Number of attempts: 5
Deleting text - 309 entries

Delete everything except some specific numbers.

  • Best score: 26
  • Best player score: 37
  • Position: #12 / 99
  • Number of attempts: 1
New teacher - 1419 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 27
  • Position: #177 / 299
  • Number of attempts: 1
months to html list items - 1108 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 24
  • Position: #101 / 300
  • Number of attempts: 3
Simple, Practical, and Common - 33866 entries

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.

  • Best score: 22
  • Best player score: 23
  • Position: #2834 / 7474
  • Number of attempts: 8
Swap values - 4661 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 13
  • Position: #643 / 1282
  • Number of attempts: 3
prepend * to every non-blank line - 6366 entries

Prepend an asterisk to every non-blank line in the input file.

  • Best score: 10
  • Best player score: 10
  • Position: #451 / 1555
  • Number of attempts: 6
One number per line - 18831 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 18
  • Position: #1563 / 3889
  • Number of attempts: 4
Add semicolons - 10916 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1786 / 3085
  • Number of attempts: 2
Box it - 7962 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 27
  • Position: #1206 / 1891
  • Number of attempts: 1
Just the middle - 11541 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #3213 / 4230
  • Number of attempts: 2
Basic renumbering - 5699 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 15
  • Position: #540 / 1273
  • Number of attempts: 1
Vice versa - 7974 entries

Little role switching.

  • Best score: 12
  • Best player score: 15
  • Position: #1129 / 2146
  • Number of attempts: 5
Reorder the groups - 1185 entries

Change the order so that the groups of fruit come before the vegetables.

  • Best score: 14
  • Best player score: 15
  • Position: #126 / 266
  • Number of attempts: 5
Fix the XML - 1039 entries

The challenge consists in having a valid xml from an incomplete source.

  • Best score: 18
  • Best player score: 24
  • Position: #147 / 290
  • Number of attempts: 4
I forgot quotes - 16093 entries

Oops.

  • Best score: 10
  • Best player score: 14
  • Position: #2052 / 4202
  • Number of attempts: 5
A HAPPY NEW YEAR 2014 ! - 10713 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #1613 / 3700
  • Number of attempts: 2
Words in parens - 12992 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 15
  • Position: #1877 / 3977
  • Number of attempts: 6
Ugly spreadsheet copy/paste to CSV - 1011 entries

convert an ugly spreadsheet copy/paste into a CSV format.

  • Best score: 19
  • Best player score: 36
  • Position: #119 / 194
  • Number of attempts: 5
Neix20
Github:

entered into 34 challenges

contributed 0 challenges