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

Calculate the table totals

Go ahead... commit the treachery of using vim as a spreadsheet.

Start file
+--------------+--------+----------+---------+
| Item         | Cost   | Amount   | Total   |
+==============+========+==========+=========+
| Apple        | 2.00   | 3        |         |
+--------------+--------+----------+---------+
| Orange       | 2.50   | 4        |         |
+--------------+--------+----------+---------+
| Banana       | 1.00   | 6        |         |
+--------------+--------+----------+---------+
| Kiwi         | 7.00   | 5        |         |
+--------------+--------+----------+---------+
| Mango        | 5.00   | 2        |         |
+--------------+--------+----------+---------+
| Plum         | 4.00   | 9        |         |
+--------------+--------+----------+---------+
| Nectarine    | 3.50   | 7        |         |
+--------------+--------+----------+---------+
| Watermelon   | 5.00   | 3        |         |
+--------------+--------+----------+---------+
| Grapes       | 4.00   | 2        |         |
+--------------+--------+----------+---------+
| Tangerine    | 5.00   | 6        |         |
+--------------+--------+----------+---------+
End file
+--------------+--------+----------+---------+
| Item         | Cost   | Amount   | Total   |
+==============+========+==========+=========+
| Apple        | 2.00   | 3        |    6.00 |
+--------------+--------+----------+---------+
| Orange       | 2.50   | 4        |   10.00 |
+--------------+--------+----------+---------+
| Banana       | 1.00   | 6        |    6.00 |
+--------------+--------+----------+---------+
| Kiwi         | 7.00   | 5        |   35.00 |
+--------------+--------+----------+---------+
| Mango        | 5.00   | 2        |   10.00 |
+--------------+--------+----------+---------+
| Plum         | 4.00   | 9        |   36.00 |
+--------------+--------+----------+---------+
| Nectarine    | 3.50   | 7        |   24.50 |
+--------------+--------+----------+---------+
| Watermelon   | 5.00   | 3        |   15.00 |
+--------------+--------+----------+---------+
| Grapes       | 4.00   | 2        |    8.00 |
+--------------+--------+----------+---------+
| Tangerine    | 5.00   | 6        |   30.00 |
+--------------+--------+----------+---------+

View Diff

4c4
< | Apple        | 2.00   | 3        |         |
---
> | Apple        | 2.00   | 3        |    6.00 |
6c6
< | Orange       | 2.50   | 4        |         |
---
> | Orange       | 2.50   | 4        |   10.00 |
8c8
< | Banana       | 1.00   | 6        |         |
---
> | Banana       | 1.00   | 6        |    6.00 |
10c10
< | Kiwi         | 7.00   | 5        |         |
---
> | Kiwi         | 7.00   | 5        |   35.00 |
12c12
< | Mango        | 5.00   | 2        |         |
---
> | Mango        | 5.00   | 2        |   10.00 |
14c14
< | Plum         | 4.00   | 9        |         |
---
> | Plum         | 4.00   | 9        |   36.00 |
16c16
< | Nectarine    | 3.50   | 7        |         |
---
> | Nectarine    | 3.50   | 7        |   24.50 |
18c18
< | Watermelon   | 5.00   | 3        |         |
---
> | Watermelon   | 5.00   | 3        |   15.00 |
20c20
< | Grapes       | 4.00   | 2        |         |
---
> | Grapes       | 4.00   | 2        |    8.00 |
22c22
< | Tangerine    | 5.00   | 6        |         |
---
> | Tangerine    | 5.00   | 6        |   30.00 |

Solutions by @KersonHsiao:

Unlock 3 remaining solutions by signing in and submitting your own entry
Created by: @connermcd

45 active golfers, 146 entries

Solutions by @KersonHsiao:
49
#22 - Kerson Hsiao / @KersonHsiao

06/10/2012 at 06:11PM

52
#>26 - Kerson Hsiao / @KersonHsiao

06/10/2012 at 05:57PM

56
#>28 - Kerson Hsiao / @KersonHsiao

06/10/2012 at 05:54PM