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 - 647 entries

Simple problem but looking for interesting solutions.

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

We should all ace this, right?

  • Best score: 13
  • Best player score: 15
  • Position: #1238 / 3964
  • Number of attempts: 4
Word frequency alignment - 290 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 / 161
  • Number of attempts: 1
Enumerate words - 254 entries

Enumerate the unique words in order.

  • Best score: 23
  • Best player score: 27
  • Position: #56 / 91
  • Number of attempts: 1
Prefixes and suffixes - 635 entries

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

  • Best score: 17
  • Best player score: 26
  • Position: #75 / 201
  • Number of attempts: 2
abcd > a b c d - 291 entries

transform the single spaces into 4 spaces repeat for each line

  • Best score: 15
  • Best player score: 15
  • Position: #57 / 222
  • Number of attempts: 1
A Simple One - 1050 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 / 664
  • Number of attempts: 1
Compile C - 430 entries

You might have to get clever to do this one.

  • Best score: 19
  • Best player score: 22
  • Position: #89 / 141
  • Number of attempts: 1
Sort and add attributes - 1452 entries

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

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

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

  • Best score: 16
  • Best player score: 24
  • Position: #374 / 788
  • Number of attempts: 4
Simple text editing with Vim - 12815 entries

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

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

art:gamedev:programming

entered into 11 challenges

contributed 0 challenges