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

Just give me the numbers.

  • Best score: 14
  • Best player score: 20
  • Position: #2188 / 3787
  • Number of attempts: 7
Add semicolons - 10539 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #774 / 2988
  • Number of attempts: 7
Box it - 7680 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 27
  • Position: #1107 / 1835
  • Number of attempts: 5
html paragraph to table - 583 entries

reformat html paragraph to table

  • Best score: 48
  • Best player score: 57
  • Position: #58 / 121
  • Number of attempts: 8
Search and Replace 0 - 4651 entries

Replace every instance of 'aaa' with 'xaaax'.

  • Best score: 12
  • Best player score: 12
  • Position: #589 / 1541
  • Number of attempts: 4
That hyphen - 2498 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 10
  • Position: #256 / 683
  • Number of attempts: 11
One to Ten - 2093 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: 12
  • Position: #126 / 641
  • Number of attempts: 2
Around the clock - 174 entries

You'll want to use 2 special commands to complete this. If you haven't yet, read through 'input.txt', especially :help simple-changes

  • Best score: 13
  • Best player score: 17
  • Position: #60 / 67
  • Number of attempts: 2
Join 'em - 228 entries

This shouldn't be too tough

  • Best score: 4
  • Best player score: 5
  • Position: #25 / 134
  • Number of attempts: 2
Put the months in order - 915 entries

Our contractor thought that months should be in alphabetical order. Put them in calendar order please.

  • Best score: 20
  • Best player score: 50
  • Position: #119 / 155
  • Number of attempts: 4
Reorder the groups - 1112 entries

Change the order so that the groups of fruit come before the vegetables.

  • Best score: 14
  • Best player score: 22
  • Position: #182 / 252
  • Number of attempts: 5
I forgot quotes - 15727 entries

Oops.

  • Best score: 10
  • Best player score: 14
  • Position: #1839 / 4113
  • Number of attempts: 5
quotes inside quotes - 3026 entries

taken from tip 85 of the very good book 'Practical Vim: Edit Text at the Speed of Thought' ! I'd be interested what people use :)

  • Best score: 14
  • Best player score: 16
  • Position: #629 / 1044
  • Number of attempts: 2
Erik Lindeborg
Twitter:

Piano player & composer. Compulsive traveller currently looking for an apartment in Stockholm.

entered into 13 challenges

contributed 0 challenges