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

Reordering properties - 1221 entries

Arrange the CSS lines for the #topbar selector based on their complete line length, from shortest to longest.

  • Best score: 24
  • Best player score: 63
  • Position: #102 / 280
  • Number of attempts: 2
Change to ascending order - 500 entries

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

  • Best score: 17
  • Best player score: 57
  • Position: #80 / 125
  • Number of attempts: 2
Swap columns and transform to CSV format - 447 entries

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

  • Best score: 16
  • Best player score: 16
  • Position: #4 / 162
  • Number of attempts: 6
Reorganize Pokémon - 829 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 18
  • Position: #9 / 226
  • Number of attempts: 6
Remove adjacent duplicates - 692 entries

Try to find a way to remove adjacent duplicate letters.

  • Best score: 19
  • Best player score: 21
  • Position: #55 / 173
  • Number of attempts: 13
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: 19
  • Position: #84 / 197
  • Number of attempts: 7
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: 6
  • Position: #126 / 466
  • Number of attempts: 8
Find fix point of cos - 1480 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: #77 / 432
  • Number of attempts: 4
Surround the 'z' character with brackets, quotes, and print as formatted string. - 577 entries

Surround the 'z' character with brackets, quotes, and print as formatted string.

  • Best score: 17
  • Best player score: 17
  • Position: #227 / 325
  • Number of attempts: 2
Simple text editing with Vim - 13473 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 13
  • Position: #728 / 3865
  • Number of attempts: 7
Shoob
Github:

entered into 10 challenges

contributed 0 challenges