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

Saving the hashes(#) - 1779 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
Simple, Practical, and Common - 26189 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: 14
  • Best player score: 23
  • Number of attempts: 4
Box it - 3853 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 22
  • Number of attempts: 4
One number per line - 13745 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 20
  • Number of attempts: 3
Minimalist Limerick - 481 entries

Reproduce this lovely poem.

  • Best score: 31
  • Best player score: 40
  • Number of attempts: 1
I forgot quotes - 12407 entries

Oops.

  • Best score: 10
  • Best player score: 15
  • Number of attempts: 1
remove lines containing the word "reader" - 2003 entries

easy stuff

  • Best score: 9
  • Best player score: 10
  • Number of attempts: 2
Just the middle - 9539 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 2
A HAPPY NEW YEAR 2014 ! - 9653 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 2
One to Ten - 1181 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

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 10 challenges

contributed 1 challenges