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 to Ten - 506 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
A HAPPY NEW YEAR 2014 ! - 9280 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 2
Just the middle - 8773 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 2
simple format - 1755 entries

make it look better.

  • Best score: 20
  • Best player score: 23
  • Number of attempts: 2
Minimalist Limerick - 448 entries

Reproduce this lovely poem.

  • Best score: 31
  • Best player score: 40
  • Number of attempts: 1
remove lines containing the word "reader" - 953 entries

easy stuff

  • Best score: 9
  • Best player score: 10
  • Number of attempts: 2
I forgot quotes - 10874 entries

Oops.

  • Best score: 10
  • Best player score: 15
  • Number of attempts: 1
One number per line - 11399 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 20
  • Number of attempts: 3
Box it - 629 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 22
  • Number of attempts: 4
Simple, Practical, and Common - 22752 entries

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.

  • Best score: 2
  • Best player score: 23
  • Number of attempts: 4
Saving the hashes(#) - 1688 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: 29
  • Number of attempts: 1

Contributed Challenges

LaTeX to XML Math Delimiters - 35 entries

Vim is amazing when used to edit MediaWiki text, but typing "<math> . . . </math>" can be tiresome and frustrating if formulas are used often. LaTeX delimiters are so concise and even come in two flavors: "\( . . . \)" for inline math and "\[ . . . \]" for centered formulas. The goal is to perform the following conversions: "\( . . . \)" becomes "<math>. . .</math>" "\[ . . . \]" becomes "<center><math>. . .</math></center>"

Matthew Barry
Twitter:

I love God foremost. I also like developing software, flying planes, talking on ham radio (where I'm known as KG5LYE), and dolphins in general.

entered into 11 challenges

contributed 1 challenges