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

Change to ascending order - 500 entries

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

  • Best score: 17
  • Best player score: 17
  • Position: #3 / 125
  • Number of attempts: 3
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: #30 / 115
  • Number of attempts: 2
extract struct tag in go - 153 entries

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

  • Best score: 29
  • Best player score: 39
  • Position: #16 / 44
  • Number of attempts: 3
CaN yOuR ViM dO ThAt? #1 - 270 entries

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

  • Best score: 41
  • Best player score: 47
  • Position: #68 / 107
  • Number of attempts: 1
Move list of uuids into a SQL query - 228 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: 69
  • Position: #48 / 74
  • Number of attempts: 1
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: 14
  • Position: #11 / 299
  • Number of attempts: 12
Rearrange array to one line - 840 entries

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

  • Best score: 13
  • Best player score: 21
  • Position: #112 / 197
  • Number of attempts: 2
Copy punctuation - 715 entries

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

  • Best score: 19
  • Best player score: 44
  • Position: #110 / 173
  • Number of attempts: 1
Deleting text - 337 entries

Delete everything except some specific numbers.

  • Best score: 26
  • Best player score: 47
  • Position: #72 / 108
  • Number of attempts: 1
New teacher - 1480 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 20
  • Position: #40 / 310
  • Number of attempts: 5
months to html list items - 1135 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 27
  • Position: #182 / 307
  • Number of attempts: 1
Quicksort - 2096 entries

We need the numbers in the first row sorted as quickly as possible! Be careful not to disturb the data below the divider though: that must remain unchanged.

  • Best score: 6
  • Best player score: 24
  • Position: #274 / 466
  • Number of attempts: 5
Fizzbuzz - 612 entries

type the first 100 lines of the fizzbuzz problem

  • Best score: 44
  • Best player score: 73
  • Position: #77 / 171
  • Number of attempts: 1
Swap values - 4693 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 15
  • Position: #987 / 1289
  • Number of attempts: 3
Swap values inside brackets - 2545 entries

Easy challenge.

  • Best score: 13
  • Best player score: 19
  • Position: #393 / 591
  • Number of attempts: 2
Rodi-Janssen
Github:

entered into 15 challenges

contributed 0 challenges