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 44 remaining solutions by signing in and submitting your own entry
#45 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

45 active golfers, 146 entries

Leaderboard (lowest score wins):
33
#1 - Conner McDaniel / @connermcd

06/03/2012 at 01:05AM

33
#2 - Tim Chase / @gumnos

06/03/2012 at 02:56AM

33
#3 - Urtica dioica / @udioica

07/20/2012 at 09:04PM

33
#4 - Sean Griffin / @sgrif

08/13/2012 at 02:33AM

33
#5 - Victor Ramirez / @virako

01/24/2013 at 12:18AM

33
#6 - Ingo / @ist3fani

06/01/2013 at 04:55PM

33
#7 - Joonas Pihlajamaa / @jokkebk

03/18/2014 at 11:45AM

33
#8 - John Braxler / @braxler

08/20/2014 at 07:51PM

33
#9 - blabla zincou / @BZincou

04/08/2022 at 10:57PM

33
#10 - Peppa Pig / @PeppaPigSg

07/03/2024 at 07:13AM

34
#11 - Justin Love / @wondible

06/03/2012 at 12:45AM

34
#12 - じょんあば / @john_ababa

06/03/2012 at 02:28AM

34
#13 - Rod Knowlton / @codelahoma

06/03/2012 at 08:08PM

34
#14 - Dave / @zzdave13

06/07/2012 at 08:35PM

34
#15 - Édouard M'tou / @DouardM

10/08/2012 at 02:00PM

34
#16 - pftb12345 / @pftb12345

05/02/2015 at 01:02PM

34
#17 - Janzen / @__Coos

09/26/2022 at 09:30AM

45
#18 - James Davis / @tripvg

08/04/2012 at 05:40AM

46
#19 - h_east (トロッコ6個) / @h_east

06/03/2012 at 10:51AM

47
#20 - Mister Knister / @vimgolf_ctrl_x

03/04/2016 at 02:49PM

48
#21 - Brendan Schaenzer / @bschaenzer

10/01/2020 at 04:07AM

49
#22 - Kerson Hsiao / @KersonHsiao

06/10/2012 at 06:11PM

51
#23 - Benoit Mortgat / @Benoit_Mortgat

06/05/2012 at 04:41AM

51
#24 - Runar / @runarfu

01/12/2013 at 11:15AM

51
#25 - Super Garbage / @SuperGarbage0

08/26/2013 at 12:27AM

52
#26 - Jonathan Lozinski / @jlozinski

06/03/2012 at 04:10PM

53
#27 - Javier Blanco / @jbgutierrez

06/06/2012 at 11:04PM

55
#28 - Asmund / @herrasbe

06/20/2012 at 08:17PM

57
#29 - Milan Blažek / @Somin13

09/06/2023 at 08:02PM

59
#30 - William Dunand / @wdunand

07/27/2012 at 06:56AM