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

Changing around text with citations - 302 entries

Based off of something I saw on reddit

  • Best score: 28
  • Best player score: 49
  • Position: #71 / 85
  • Number of attempts: 1
delete swap - 1466 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #74 / 465
  • Number of attempts: 2
Easy modification of ssh config - 335 entries

Just add another alias to each worker

  • Best score: 24
  • Best player score: 31
  • Position: #69 / 104
  • Number of attempts: 1
One number per line - 18613 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 22
  • Position: #2731 / 3841
  • Number of attempts: 3
V to the i - 4743 entries

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

  • Best score: 7
  • Best player score: 14
  • Position: #1828 / 1878
  • Number of attempts: 1
Box it - 7818 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 34
  • Position: #1565 / 1861
  • Number of attempts: 3
multiple cursor alternative - 1474 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
  • Position: #324 / 376
  • Number of attempts: 1
From argument to object - 1474 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
  • Position: #418 / 450
  • Number of attempts: 1
Flip the bit - 119 entries

Change the specific 0 to a 1.

  • Best score: 8
  • Best player score: 8
  • Position: #22 / 70
  • Number of attempts: 2
Just the middle - 11346 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #1230 / 4160
  • Number of attempts: 2
Team names - 1805 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 24
  • Position: #546 / 581
  • Number of attempts: 1
One to Ten - 2159 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
  • Position: #564 / 660
  • Number of attempts: 4
I forgot quotes - 15922 entries

Oops.

  • Best score: 10
  • Best player score: 16
  • Position: #2659 / 4159
  • Number of attempts: 2
-a-b-c- - 3170 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 16
  • Position: #851 / 1127
  • Number of attempts: 1
Words in parens - 12848 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 17
  • Position: #2708 / 3943
  • Number of attempts: 1
Saving the hashes(#) - 1992 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
  • Position: #413 / 473
  • Number of attempts: 1
JvdB01
Twitter:

entered into 16 challenges

contributed 0 challenges