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 4d665abd7d73e02a55000009

Java Array2List

Convert an java array initializer into a list.

Start file
double[] c = 
{
	112.2, 102, 12, 954, 39.43,
	49.4, 2224.6, 94, 123,
	4929.55, 12, 98, 91.22
};
End file
List<Double> c = new ArrayList<Double>();
c.add(112.2);
c.add(102d);
c.add(12d);
c.add(954d);
c.add(39.43);
c.add(49.4);
c.add(2224.6);
c.add(94d);
c.add(123d);
c.add(4929.55);
c.add(12d);
c.add(98d);
c.add(91.22);

View Diff

1,6c1,14
< double[] c = 
< {
< 	112.2, 102, 12, 954, 39.43,
< 	49.4, 2224.6, 94, 123,
< 	4929.55, 12, 98, 91.22
< };
---
> List<Double> c = new ArrayList<Double>();
> c.add(112.2);
> c.add(102d);
> c.add(12d);
> c.add(954d);
> c.add(39.43);
> c.add(49.4);
> c.add(2224.6);
> c.add(94d);
> c.add(123d);
> c.add(4929.55);
> c.add(12d);
> c.add(98d);
> c.add(91.22);

Solutions by @NolenRoyalty:

Unlock 20 remaining solutions by signing in and submitting your own entry
Created by: @robrob12

87 active golfers, 233 entries

Solutions by @NolenRoyalty:
79
#13 - Nolen Royalty / @NolenRoyalty

04/20/2012 at 01:25PM

79
#>13 - Nolen Royalty / @NolenRoyalty

04/20/2012 at 01:29PM

81
#>15 - Nolen Royalty / @NolenRoyalty

04/20/2012 at 01:15PM

87
#>29 - Nolen Royalty / @NolenRoyalty

04/20/2012 at 12:43PM

91
#>32 - Nolen Royalty / @NolenRoyalty

04/20/2012 at 12:40PM

91
#>32 - Nolen Royalty / @NolenRoyalty

04/20/2012 at 01:03PM

91
#>32 - Nolen Royalty / @NolenRoyalty

04/20/2012 at 01:05PM

96
#>39 - Nolen Royalty / @NolenRoyalty

04/20/2012 at 12:05PM

96
#>39 - Nolen Royalty / @NolenRoyalty

04/20/2012 at 12:19PM

96
#>39 - Nolen Royalty / @NolenRoyalty

04/20/2012 at 12:37PM

100
#>42 - Nolen Royalty / @NolenRoyalty

04/20/2012 at 11:24AM

101
#>44 - Nolen Royalty / @NolenRoyalty

04/20/2012 at 11:36AM

103
#>46 - Nolen Royalty / @NolenRoyalty

04/20/2012 at 11:05AM

103
#>46 - Nolen Royalty / @NolenRoyalty

04/20/2012 at 11:22AM

104
#>46 - Nolen Royalty / @NolenRoyalty

04/20/2012 at 11:14AM

112
#>56 - Nolen Royalty / @NolenRoyalty

04/20/2012 at 09:44AM

112
#>56 - Nolen Royalty / @NolenRoyalty

04/20/2012 at 09:53AM

115
#>60 - Nolen Royalty / @NolenRoyalty

04/20/2012 at 10:17AM

118
#>64 - Nolen Royalty / @NolenRoyalty

04/20/2012 at 09:49AM

122
#>70 - Nolen Royalty / @NolenRoyalty

04/20/2012 at 09:41AM