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

vim = 22 / 7 - 415 entries

pi square vim

  • Best score: 20
  • Best player score: 20
  • Position: #14 / 127
  • Number of attempts: 8
VimGolfNight - 487 entries

Based on "The name of the game".

  • Best score: 12
  • Best player score: 12
  • Position: #56 / 323
  • Number of attempts: 1
Going underground.... - 303 entries

Simple reformatting: in this case changing from the format London underground supplies its customers with, to the format that Google Calendar likes...

  • Best score: 22
  • Best player score: 29
  • Position: #45 / 120
  • Number of attempts: 3
attr_aligner - 3378 entries

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

  • Best score: 19
  • Best player score: 31
  • Position: #378 / 680
  • Number of attempts: 2
Counting in binary - 405 entries

"a" represents 0; "A" represents 1. Start from zero and count to 15.

  • Best score: 16
  • Best player score: 54
  • Position: #92 / 105
  • Number of attempts: 5
quotes inside quotes - 3015 entries

taken from tip 85 of the very good book 'Practical Vim: Edit Text at the Speed of Thought' ! I'd be interested what people use :)

  • Best score: 14
  • Best player score: 14
  • Position: #20 / 1040
  • Number of attempts: 4
Assign list - 146 entries

Assign list elements to matrix

  • Best score: 30
  • Best player score: 73
  • Position: #55 / 55
  • Number of attempts: 2
paste indent correction - JS - 83 entries

You copy some javascript code from a website and paste it into vim, it does not look good!

  • Best score: 16
  • Best player score: 16
  • Position: #21 / 51
  • Number of attempts: 4
Hole-in-one - 963 entries

Lets take this golf thing literally.. Drive off the tee into the hole, and of course you don't strike the ball completely clean.

  • Best score: 15
  • Best player score: 22
  • Position: #222 / 294
  • Number of attempts: 2
Parsing with CSV: Unify lines and result. - 163 entries

col1;col2;col3;col4 A;1;4;5 A;3;4; A;1;4; # New output: col1;col2;col3;col4 A;1(2x);3;4(3x);5 any ideas?

  • Best score: 21
  • Best player score: 21
  • Position: #17 / 71
  • Number of attempts: 2
lamb had a little Mary - 538 entries

"Mary" and "lamb" are swapped. Unswap them. Fast as you can.

  • Best score: 16
  • Best player score: 38
  • Position: #108 / 153
  • Number of attempts: 1
Vertical Limit - 2349 entries

transform a succession of one word lines to a an array of strings

  • Best score: 21
  • Best player score: 24
  • Position: #259 / 710
  • Number of attempts: 8
Switch function arguments - 1961 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 11
  • Position: #58 / 621
  • Number of attempts: 6
Remove semicolons after expressions - 520 entries

A follow-up for http://vimgolf.com/challenges/4fc9d767d3a0d4000100000e.

  • Best score: 6
  • Best player score: 6
  • Position: #64 / 228
  • Number of attempts: 3
switch variable - 4894 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 13
  • Position: #1043 / 1696
  • Number of attempts: 1
The meaning - 518 entries

Numbers are fun!

  • Best score: 5
  • Best player score: 5
  • Position: #189 / 333
  • Number of attempts: 1
Make it more readable - 1867 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 13
  • Position: #34 / 615
  • Number of attempts: 8
remove dupes from array - 1266 entries

given a random string that contains a ruby-esque array, make sure that there are no duplicate elements

  • Best score: 17
  • Best player score: 23
  • Position: #191 / 322
  • Number of attempts: 3
Increment, increment, increment.... - 546 entries

Vim likes macros

  • Best score: 10
  • Best player score: 12
  • Position: #227 / 363
  • Number of attempts: 2
Simple text editing with Vim - 11495 entries

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

  • Best score: 13
  • Best player score: 13
  • Position: #209 / 3373
  • Number of attempts: 8
moo goo
Twitter:

entered into 20 challenges

contributed 0 challenges