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

Sorting database text output - 183 entries

Sometimes it is nice to be able to quickly take column-formatted text output from the SQL command line and turn it into a list of useful data. In this case we want a unique, sorted list of the values from the second column combined into one comma-separated list. What is the fewest strokes you can do this in?

  • Best score: 24
  • Best player score: 25
  • Number of attempts: 2
Suffix sort - 163 entries

Sort from the end of the line, as if the letters in each line were reversed.

  • Best score: 19
  • Best player score: 22
  • Number of attempts: 3
Change The Perspective - 35 entries

This is a go game recodes file(.sgf file, refer to http://www.red-bean.com/sgf/). It base on such a coordinate system: in vertical direction, is from top(farthest end) to bottom, mark as a,b,c,...,s(19*19 board); in horizontal direction, is from left to right, uses the same notations. For Example, the coordinate notation 'cq', is the position at the bottom-left corner(vertical coordinate first). The record is from one player's perspective. We need to change to another's, but we don't want to change coordinate system, let it keep top to bottom and left to right. so we have to change the coordinates, a <-> s, b <-> r,c <-> q, etc. the Position 'cq', as transformation, it will be 'qd'.

  • Best score: 33
  • Best player score: 47
  • Number of attempts: 1
Comparing scores - 68 entries

If Alice and Bob both did the challenge, put their entries together in the top paragraph, so we can compare their scores more easily.

  • Best score: 18
  • Best player score: 21
  • Number of attempts: 4
attr_aligner - 2847 entries

Two attr keywords. Two separate indentations. Align the colons.

  • Best score: 19
  • Best player score: 19
  • Number of attempts: 13
NBCU Weekly Challenge - Test - 214 entries

Just testing.

  • Best score: 18
  • Best player score: 18
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 9229 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Number of attempts: 2
readability - 285 entries

Make the code readable by adding some spaces

  • Best score: 18
  • Best player score: 18
  • Number of attempts: 3
Don't know what this is - 1668 entries

Replace contents of brackets with matching number of spaces. Don't ask what the format's supposed to be.

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 3
NBCU Weekly Challenge - #0 - 118 entries

One of our favorites lines here at NBCU! p.s. The first version of #0 was deleted due to me copy/pasting a HTML entity. Congrats to the one who figured that out, you are a true ninja warrior!

  • Best score: 30
  • Best player score: 30
  • Number of attempts: 2
V to the i - 3653 entries

Input is 99 V's. Output is 100 i's.

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 2
Simple text editing with Vim - 10065 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 14
  • Number of attempts: 1
Restore order to the alphabet - 149 entries

The numbers are OK. The letters are wonky.

  • Best score: 12
  • Best player score: 27
  • Number of attempts: 1
120 Degrees - 349 entries

Rotate that triangle.

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 3
Words in parens - 10552 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 15
  • Number of attempts: 2
Lisp Condense - 364 entries

Reduce 4 cons selection operations down to one function call.

  • Best score: 13
  • Best player score: 16
  • Number of attempts: 1
Where should I put the Newline? - 785 entries

Help me put the newline.

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 1
ASCII box - 293 entries

Don't forget to fix typos!

  • Best score: 23
  • Best player score: 24
  • Number of attempts: 4
Extract argument from function - 1872 entries

The aim is to see if you can do some refactoring very fast.

  • Best score: 13
  • Best player score: 13
  • Number of attempts: 3
Do you demand a shrubbery? - 985 entries

Use :redir and crush the emacsgolfers.

  • Best score: 15
  • Best player score: 18
  • Number of attempts: 3
Not enough Ps - 44 entries

Different type of code

  • Best score: 13
  • Best player score: 14
  • Number of attempts: 1
Phil Runninger
Twitter:

entered into 21 challenges

contributed 0 challenges