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

The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!

Check out these helpful resources to improve your Vim skills... Game on.

Unlock 37 remaining solutions by signing in and submitting your own entry
#38 Benjamin Sergeant / @bsergean - Score: 200 - 06/05/12 @ 04:57
2ju<C-O>3j4f|hhhhqq.00$hhhhqqqi.<Esc>ur.lr0lr0qjjhh.u@qj2kj2j2h.xuuuuuuuuuuuqqr.0ll$uuuqqr.lr0lr02h2jq@q@q@qqqr.lr0l.2h2jq@q7@q@qk2hlhr3lr0kkr82kr5hr12kr2lr4f0r52k3h33l5hr6hr32kr1lr02kr5hr32klr62kr0hr12klr6ZZ

0 comments


Created by: @connermcd

38 active golfers, 105 entries

Leaderboard (lowest score wins):
78
#31 - John Whitley / @johnwhitley

06/03/2012 at 02:18AM

78
#32 - lauri lehmijoki / @laurilehmijoki

06/03/2012 at 10:56AM

80
#33 - 何晨 / @hechen0_

09/22/2016 at 05:36PM

118
#34 - retro / @tryphopp

12/23/2015 at 04:12AM

137
#35 - Eric Söderström / @eksoderstrom

07/19/2012 at 07:07PM

162
#36 - Asenar / @asenar

06/02/2012 at 09:32PM

177
#37 - Noel Alejandro / @noelrock333

06/22/2012 at 11:17PM

200
#38 - Benjamin Sergeant / @bsergean

06/05/2012 at 04:57AM