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

One number per line - 16215 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 22
  • Number of attempts: 3
V to the i - 4332 entries

Input is 99 V's. Output is 100 i's.

  • Best score: 7
  • Best player score: 14
  • Number of attempts: 1
One to Ten - 1702 entries

Generate the sequence of numbers from 1 to 10, one number per line. Inspired by this Reddit thread: https://redd.it/ak4it2

  • Best score: 12
  • Best player score: 21
  • Number of attempts: 4
-a-b-c- - 2854 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 16
  • Number of attempts: 1
From argument to object - 1212 entries

This task typifies those programmers endure while coding. This C-family pseudocode needs a function argument to be repurposed as an object call. Simply search and replace? Repeat a pattern of edits?

  • Best score: 17
  • Best player score: 26
  • Number of attempts: 1
multiple cursor alternative - 1327 entries

from: https://www.reddit.com/r/vim/comments/6w5pfa/crosspost_from_remacs_how_would_you_do_this_in_vim/

  • Best score: 19
  • Best player score: 28
  • Number of attempts: 1
Just the middle - 10310 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 2
Saving the hashes(#) - 1861 entries

The following file is copied from vimcasts.org(Its only for learning purpose,hope the site owner doesn't mind it), its probably the easiest of challenges.Our goal is to delete every line which doesn't contain a hash signs. The remaining hash signs with numbers are then sorted to get the final output.

  • Best score: 20
  • Best player score: 32
  • Number of attempts: 1
Box it - 6004 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 34
  • Number of attempts: 3
Flip the bit - 86 entries

Change the specific 0 to a 1.

  • Best score: 8
  • Best player score: 8
  • Number of attempts: 2
Words in parens - 11973 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 17
  • Number of attempts: 1
Team names - 1625 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 24
  • Number of attempts: 1
I forgot quotes - 14254 entries

Oops.

  • Best score: 10
  • Best player score: 16
  • Number of attempts: 2
JvdB01
Twitter:

entered into 13 challenges

contributed 0 challenges