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 - 1631 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: #80 / 271
  • Number of attempts: 2
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: 21
  • Position: #98 / 182
  • Number of attempts: 2
Deleting text - 309 entries

Delete everything except some specific numbers.

  • Best score: 26
  • Best player score: 45
  • Position: #34 / 99
  • Number of attempts: 2
New teacher - 1419 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 29
  • Position: #207 / 299
  • Number of attempts: 3
Quicksort - 2058 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: #296 / 457
  • Number of attempts: 4
EDN reformat - 1193 entries

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

  • Best score: 17
  • Best player score: 33
  • Position: #128 / 169
  • Number of attempts: 4
Populate 3D bone names list - 638 entries

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

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

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

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

Quick and easy

  • Best score: 7
  • Best player score: 9
  • Position: #347 / 478
  • Number of attempts: 2
delete swap - 1818 entries

delete all swap

  • Best score: 5
  • Best player score: 11
  • Position: #478 / 567
  • Number of attempts: 2
Generate a very basic Python constructor (fixed) - 1281 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: #166 / 275
  • Number of attempts: 3
Fix the shell script! - 2651 entries

Fix the shell script with the fewest keystrokes!

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

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

  • Best score: 10
  • Best player score: 13
  • Position: #415 / 561
  • Number of attempts: 1
Contribute to keyboard mashing - 900 entries

Speak in tongues

  • Best score: 17
  • Best player score: 20
  • Position: #210 / 273
  • Number of attempts: 2
Lowercase first characters - 490 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: #65 / 184
  • Number of attempts: 2
Migrated to Postgres! - 338 entries

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

  • Best score: 26
  • Best player score: 29
  • Position: #72 / 133
  • Number of attempts: 3
simple replacements - 1833 entries

The goal is to see the replacement commands in action.

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

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

  • Best score: 5
  • Best player score: 5
  • Position: #306 / 437
  • 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