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

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

  • Best score: 14
  • Best player score: 21
  • Position: #84 / 289
  • Number of attempts: 2
Rearrange array to one line - 807 entries

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

  • Best score: 13
  • Best player score: 21
  • Position: #103 / 190
  • Number of attempts: 2
Deleting text - 329 entries

Delete everything except some specific numbers.

  • Best score: 26
  • Best player score: 45
  • Position: #35 / 103
  • Number of attempts: 2
New teacher - 1465 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 29
  • Position: #212 / 306
  • Number of attempts: 3
Quicksort - 2095 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: 25
  • Position: #300 / 465
  • Number of attempts: 4
EDN reformat - 1209 entries

The goal is to make the code more readable and concise while maintaining its functionality.

  • Best score: 17
  • Best player score: 33
  • Position: #129 / 170
  • Number of attempts: 4
Populate 3D bone names list - 652 entries

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

  • Best score: 21
  • Best player score: 25
  • Position: #62 / 168
  • Number of attempts: 4
Surround the 'z' character with brackets, quotes, and print as formatted string. - 576 entries

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

  • Best score: 17
  • Best player score: 17
  • Position: #216 / 324
  • Number of attempts: 1
Many duplicates - 1472 entries

Quick and easy

  • Best score: 7
  • Best player score: 9
  • Position: #348 / 480
  • Number of attempts: 2
delete swap - 1834 entries

delete all swap

  • Best score: 5
  • Best player score: 11
  • Position: #480 / 570
  • Number of attempts: 2
Generate a very basic Python constructor (fixed) - 1294 entries

Original by @BiddulphCaleb (http://www.vimgolf.com/challenges/6019f1c4642668000cee11e8) - had some extra spaces in output file.

  • Best score: 29
  • Best player score: 47
  • Position: #167 / 277
  • Number of attempts: 3
Fix the shell script! - 2663 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 32
  • Position: #297 / 619
  • Number of attempts: 3
Put a newline after every 10 lines in vim - 1680 entries

Goal is to put a newline after every 10 lines in vim.

  • Best score: 10
  • Best player score: 13
  • Position: #417 / 564
  • Number of attempts: 1
Contribute to keyboard mashing - 903 entries

Speak in tongues

  • Best score: 17
  • Best player score: 20
  • Position: #211 / 274
  • Number of attempts: 2
Lowercase first characters - 499 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: 35
  • Position: #66 / 185
  • Number of attempts: 2
Migrated to Postgres! - 348 entries

Celebration completion of this project. https://github.com/igrigorik/vimgolf/pull/322

  • Best score: 26
  • Best player score: 29
  • Position: #73 / 134
  • Number of attempts: 3
simple replacements - 1861 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 24
  • Position: #232 / 399
  • Number of attempts: 4
Wrap the text of an email message to 79 characters - 852 entries

You're replying to an email with silly long lines. Clean them up.

  • Best score: 5
  • Best player score: 5
  • Position: #306 / 441
  • Number of attempts: 1
Hatsuyume - 556 entries

http://en.wikipedia.org/wiki/Hatsuyume

  • Best score: 15
  • Best player score: 19
  • Position: #32 / 191
  • Number of attempts: 1
Namdrib
Github:

entered into 19 challenges

contributed 0 challenges