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

Put the months in order - 603 entries

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

  • Best score: 20
  • Best player score: 50
  • Number of attempts: 4
One to Ten - 1379 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
  • Number of attempts: 2
Add semicolons - 4880 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Number of attempts: 7
Box it - 4501 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 27
  • Number of attempts: 5
Around the clock - 150 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
  • Number of attempts: 2
That hyphen - 2263 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 10
  • Number of attempts: 11
Join 'em - 186 entries

This shouldn't be too tough

  • Best score: 5
  • Best player score: 5
  • Number of attempts: 2
Search and Replace 0 - 4226 entries

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

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 4
html paragraph to table - 451 entries

reformat html paragraph to table

  • Best score: 7
  • Best player score: 57
  • Number of attempts: 8
One number per line - 14438 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 20
  • Number of attempts: 7
I forgot quotes - 12890 entries

Oops.

  • Best score: 10
  • Best player score: 14
  • Number of attempts: 5
quotes inside quotes - 2845 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
  • Number of attempts: 2
Reorder the groups - 740 entries

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

  • Best score: 14
  • Best player score: 22
  • Number of attempts: 5
Erik Lindeborg
Twitter:

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

entered into 13 challenges

contributed 0 challenges