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 - 1425 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: #72 / 233
  • Number of attempts: 2
Rearrange array to one line - 680 entries

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

  • Best score: 13
  • Best player score: 21
  • Position: #89 / 163
  • Number of attempts: 2
Deleting text - 262 entries

Delete everything except some specific numbers.

  • Best score: 26
  • Best player score: 45
  • Position: #29 / 86
  • Number of attempts: 2
New teacher - 1197 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 29
  • Position: #177 / 251
  • Number of attempts: 3
Quicksort - 2005 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: #286 / 442
  • Number of attempts: 4
EDN reformat - 1162 entries

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

  • Best score: 17
  • Best player score: 33
  • Position: #125 / 166
  • Number of attempts: 4
Populate 3D bone names list - 633 entries

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

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

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

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

Quick and easy

  • Best score: 7
  • Best player score: 9
  • Position: #341 / 471
  • Number of attempts: 2
delete swap - 1788 entries

delete all swap

  • Best score: 5
  • Best player score: 11
  • Position: #469 / 557
  • Number of attempts: 2
Generate a very basic Python constructor (fixed) - 1253 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: #162 / 271
  • Number of attempts: 3
Fix the shell script! - 2596 entries

Fix the shell script with the fewest keystrokes!

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

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

  • Best score: 10
  • Best player score: 13
  • Position: #412 / 558
  • Number of attempts: 1
Contribute to keyboard mashing - 890 entries

Speak in tongues

  • Best score: 17
  • Best player score: 20
  • Position: #208 / 270
  • Number of attempts: 2
Lowercase first characters - 487 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: #64 / 183
  • Number of attempts: 2
Migrated to Postgres! - 331 entries

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

  • Best score: 26
  • Best player score: 29
  • Position: #70 / 131
  • Number of attempts: 3
simple replacements - 1802 entries

The goal is to see the replacement commands in action.

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

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

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

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

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

entered into 19 challenges

contributed 0 challenges