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

Just give me the numbers.

  • Best score: 14
  • Best player score: 20
  • Position: #2230 / 3865
  • Number of attempts: 7
Add semicolons - 10860 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #804 / 3064
  • Number of attempts: 7
Box it - 7905 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 27
  • Position: #1138 / 1876
  • Number of attempts: 5
html paragraph to table - 606 entries

reformat html paragraph to table

  • Best score: 48
  • Best player score: 57
  • Position: #61 / 126
  • Number of attempts: 8
Search and Replace 0 - 4989 entries

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

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

"vim vi improved"

  • Best score: 9
  • Best player score: 10
  • Position: #262 / 701
  • Number of attempts: 11
One to Ten - 2219 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 / 672
  • Number of attempts: 2
Around the clock - 199 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: #70 / 77
  • Number of attempts: 2
Join 'em - 251 entries

This shouldn't be too tough

  • Best score: 4
  • Best player score: 5
  • Position: #40 / 151
  • Number of attempts: 2
Put the months in order - 974 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: #126 / 163
  • Number of attempts: 4
Reorder the groups - 1181 entries

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

  • Best score: 14
  • Best player score: 22
  • Position: #192 / 264
  • Number of attempts: 5
I forgot quotes - 15989 entries

Oops.

  • Best score: 10
  • Best player score: 14
  • Position: #1861 / 4181
  • Number of attempts: 5
quotes inside quotes - 3159 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: #652 / 1078
  • 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