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

Rearrange array to single level - 1298 entries

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

  • Best score: 14
  • Best player score: 19
  • Position: #42 / 205
  • Number of attempts: 4
Rearrange array to one line - 602 entries

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

  • Best score: 13
  • Best player score: 13
  • Position: #6 / 144
  • Number of attempts: 8
Copy punctuation - 487 entries

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

  • Best score: 19
  • Best player score: 19
  • Position: #5 / 121
  • Number of attempts: 12
Deleting text - 254 entries

Delete everything except some specific numbers.

  • Best score: 26
  • Best player score: 49
  • Position: #65 / 81
  • Number of attempts: 1
Hex to binary - 88 entries

Convert hexadecimal numbers into binary format.

  • Best score: 29
  • Best player score: 32
  • Position: #6 / 18
  • Number of attempts: 13
Format a long line - 80 entries

Reformat long lines (gq), textwidth=78, no trailing spaces.

  • Best score: 17
  • Best player score: 18
  • Position: #8 / 26
  • Number of attempts: 6
Find anomalies - 148 entries

There is one special character per line

  • Best score: 30
  • Best player score: 40
  • Position: #22 / 39
  • Number of attempts: 7
New teacher - 923 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 19
  • Position: #11 / 194
  • Number of attempts: 11
Replace word while reserving first letter case - 604 entries

Window -> Door window -> door Windows -> Windows windows -> windows

  • Best score: 24
  • Best player score: 41
  • Position: #86 / 118
  • Number of attempts: 3
months to html list items - 1010 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 22
  • Position: #40 / 274
  • Number of attempts: 11
Quicksort - 1962 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: #251 / 431
  • Number of attempts: 2
Tic-Tac-Toe Grid Transformation - 396 entries

Your mission is to efficiently convert the original Tic-Tac-Toe grid, represented by 'x's and 'o's, into a neat and well-organized game board.

  • Best score: 56
  • Best player score: 112
  • Position: #41 / 83
  • Number of attempts: 2
Pick and sort servers from mirror list - 431 entries

Retrieve the primary server for each country from a mirror list file and organize them alphabetically by country name. Given a mirror list file containing server information for various countries, the objective is to extract the primary server from each country and then arrange these servers in alphabetical order based on the respective country names.

  • Best score: 28
  • Best player score: 30
  • Position: #34 / 87
  • Number of attempts: 13
Populate 3D bone names list - 629 entries

Ran into this at work, excited to see how this gets optimized

  • Best score: 21
  • Best player score: 22
  • Position: #47 / 162
  • Number of attempts: 10
Find fix point of cos - 1402 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: 14
  • Position: #68 / 415
  • Number of attempts: 4
Swap values inside brackets - 2496 entries

Easy challenge.

  • Best score: 14
  • Best player score: 14
  • Position: #109 / 579
  • Number of attempts: 6
Extract argument from function - 2357 entries

The aim is to see if you can do some refactoring very fast.

  • Best score: 13
  • Best player score: 13
  • Position: #271 / 753
  • Number of attempts: 7
Blake Raymond
Github:

entered into 17 challenges

contributed 0 challenges