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

Swap assigned value - 536 entries

Simple problem but looking for interesting solutions.

  • Best score: 10
  • Best player score: 10
  • Position: #24 / 229
  • Number of attempts: 3
Words in parens - 12690 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 15
  • Position: #1205 / 3906
  • Number of attempts: 4
Word frequency alignment - 233 entries

You've got to align the second column, but the spacing is inconvenient and there are nasty tabs in the way. If you're a "real Vim ninja," this could be very quick indeed...

  • Best score: 5
  • Best player score: 5
  • Position: #3 / 142
  • Number of attempts: 1
Enumerate words - 226 entries

Enumerate the unique words in order.

  • Best score: 23
  • Best player score: 27
  • Position: #50 / 82
  • Number of attempts: 1
Prefixes and suffixes - 549 entries

Generate all prefixes of "vimchallenge", then all suffixes.

  • Best score: 17
  • Best player score: 26
  • Position: #68 / 178
  • Number of attempts: 2
abcd > a b c d - 251 entries

transform the single spaces into 4 spaces repeat for each line

  • Best score: 15
  • Best player score: 15
  • Position: #57 / 198
  • Number of attempts: 1
A Simple One - 880 entries

Here is a very simple one - just to illustrate/introduce a vim feature that some people seem to miss...

  • Best score: 9
  • Best player score: 9
  • Position: #303 / 589
  • Number of attempts: 1
Compile C - 300 entries

You might have to get clever to do this one.

  • Best score: 19
  • Best player score: 22
  • Position: #74 / 116
  • Number of attempts: 1
Sort and add attributes - 1133 entries

Sort the states and add the attribute country to each record.

  • Best score: 33
  • Best player score: 33
  • Position: #132 / 464
  • Number of attempts: 4
Whitespace, empty lines and tabs - 2797 entries

Convert tabs to spaces, strip empty lines and trailing whitespace.

  • Best score: 16
  • Best player score: 24
  • Position: #293 / 638
  • Number of attempts: 4
Simple text editing with Vim - 11431 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #942 / 3357
  • Number of attempts: 2
r
Twitter:

art:gamedev:programming

entered into 11 challenges

contributed 0 challenges