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 5123331bb2bc340002000003

Fibonacci Triangles

Triangles

Start file
123 5  8   13      21           34                   55                                89
End file
                                                                                        |
                                                                                       /|
                                                                                      / |
                                                                                     /  |
                                                                                    /   |
                                                                                   /    |
                                                                                  /     |
                                                                                 /      |
                                                                                /       |
                                                                               /        |
                                                                              /         |
                                                                             /          |
                                                                            /           |
                                                                           /            |
                                                                          /             |
                                                                         /              |
                                                                        /               |
                                                                       /                |
                                                                      /                 |
                                                                     /                  |
                                                                    /                   |
                                                                   /                    |
                                                                  /                     |
                                                                 /                      |
                                                                /                       |
                                                               /                        |
                                                              /                         |
                                                             /                          |
                                                            /                           |
                                                           /                            |
                                                          /                             |
                                                         /                              |
                                                        /                               |
                                                       /                                |
                                                      /                                 |
                                                     /|                                 |
                                                    / |                                 |
                                                   /  |                                 |
                                                  /   |                                 |
                                                 /    |                                 |
                                                /     |                                 |
                                               /      |                                 |
                                              /       |                                 |
                                             /        |                                 |
                                            /         |                                 |
                                           /          |                                 |
                                          /           |                                 |
                                         /            |                                 |
                                        /             |                                 |
                                       /              |                                 |
                                      /               |                                 |
                                     /                |                                 |
                                    /                 |                                 |
                                   /                  |                                 |
                                  /                   |                                 |
                                 /                    |                                 |
                                /|                    |                                 |
                               / |                    |                                 |
                              /  |                    |                                 |
                             /   |                    |                                 |
                            /    |                    |                                 |
                           /     |                    |                                 |
                          /      |                    |                                 |
                         /       |                    |                                 |
                        /        |                    |                                 |
                       /         |                    |                                 |
                      /          |                    |                                 |
                     /           |                    |                                 |
                    /            |                    |                                 |
                   /|            |                    |                                 |
                  / |            |                    |                                 |
                 /  |            |                    |                                 |
                /   |            |                    |                                 |
               /    |            |                    |                                 |
              /     |            |                    |                                 |
             /      |            |                    |                                 |
            /       |            |                    |                                 |
           /|       |            |                    |                                 |
          / |       |            |                    |                                 |
         /  |       |            |                    |                                 |
        /   |       |            |                    |                                 |
       /    |       |            |                    |                                 |
      /|    |       |            |                    |                                 |
     / |    |       |            |                    |                                 |
    /  |    |       |            |                    |                                 |
   /|  |    |       |            |                    |                                 |
  / |  |    |       |            |                    |                                 |
 /| |  |    |       |            |                    |                                 |
123-5--8---13------21-----------34-------------------55--------------------------------89

View Diff

1c1,89
< 123 5  8   13      21           34                   55                                89
---
>                                                                                         |
>                                                                                        /|
>                                                                                       / |
>                                                                                      /  |
>                                                                                     /   |
>                                                                                    /    |
>                                                                                   /     |
>                                                                                  /      |
>                                                                                 /       |
>                                                                                /        |
>                                                                               /         |
>                                                                              /          |
>                                                                             /           |
>                                                                            /            |
>                                                                           /             |
>                                                                          /              |
>                                                                         /               |
>                                                                        /                |
>                                                                       /                 |
>                                                                      /                  |
>                                                                     /                   |
>                                                                    /                    |
>                                                                   /                     |
>                                                                  /                      |
>                                                                 /                       |
>                                                                /                        |
>                                                               /                         |
>                                                              /                          |
>                                                             /                           |
>                                                            /                            |
>                                                           /                             |
>                                                          /                              |
>                                                         /                               |
>                                                        /                                |
>                                                       /                                 |
>                                                      /|                                 |
>                                                     / |                                 |
>                                                    /  |                                 |
>                                                   /   |                                 |
>                                                  /    |                                 |
>                                                 /     |                                 |
>                                                /      |                                 |
>                                               /       |                                 |
>                                              /        |                                 |
>                                             /         |                                 |
>                                            /          |                                 |
>                                           /           |                                 |
>                                          /            |                                 |
>                                         /             |                                 |
>                                        /              |                                 |
>                                       /               |                                 |
>                                      /                |                                 |
>                                     /                 |                                 |
>                                    /                  |                                 |
>                                   /                   |                                 |
>                                  /                    |                                 |
>                                 /|                    |                                 |
>                                / |                    |                                 |
>                               /  |                    |                                 |
>                              /   |                    |                                 |
>                             /    |                    |                                 |
>                            /     |                    |                                 |
>                           /      |                    |                                 |
>                          /       |                    |                                 |
>                         /        |                    |                                 |
>                        /         |                    |                                 |
>                       /          |                    |                                 |
>                      /           |                    |                                 |
>                     /            |                    |                                 |
>                    /|            |                    |                                 |
>                   / |            |                    |                                 |
>                  /  |            |                    |                                 |
>                 /   |            |                    |                                 |
>                /    |            |                    |                                 |
>               /     |            |                    |                                 |
>              /      |            |                    |                                 |
>             /       |            |                    |                                 |
>            /|       |            |                    |                                 |
>           / |       |            |                    |                                 |
>          /  |       |            |                    |                                 |
>         /   |       |            |                    |                                 |
>        /    |       |            |                    |                                 |
>       /|    |       |            |                    |                                 |
>      / |    |       |            |                    |                                 |
>     /  |    |       |            |                    |                                 |
>    /|  |    |       |            |                    |                                 |
>   / |  |    |       |            |                    |                                 |
>  /| |  |    |       |            |                    |                                 |
> 123-5--8---13------21-----------34-------------------55--------------------------------89

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 12 remaining solutions by signing in and submitting your own entry
#13 Tyler / tylerbindon - Score: 65 - 04/09/13 @ 02:30
:se sol!<CR>O<Esc>89I <Esc>Y87gpqqek<C-V>ggr|Gq7@q0:s/ /-/g<CR>kqqlr/k<C-V>ggr <C-O>q86@qZZ

0 comments

#14 Allan Tokuda / atokuda - Score: 66 - 02/24/13 @ 02:43
YPVr qqjekr|q7@qyy87PGqqklr/q87@q:g/\//norm vt/r <CR>ggr|G:s/ /-/g<CR>ZZ

0 comments

#15 Édouard M'tou / DouardM - Score: 66 - 03/10/13 @ 20:34
Y88Pv$r $r|jqq<C-V>#kr|<C-O>h<C-V>b#kwgelr hq7@q$hqqr/hv0r wjhq86@q:s/ /-/g<CR>ZZ

0 comments

Created by: zulolosi

15 active golfers, 36 entries

Leaderboard (lowest score wins):
40
#1 - Urtica dioica / udioica

03/05/2014 at 11:39AM

40
#2 - John Braxler / braxler

10/14/2014 at 09:59PM

41
#3 - Kai Yuan / kentyuan

02/24/2013 at 12:48AM

41
#4 - Petro Тrouq / zulolosi

04/08/2014 at 09:15PM

42
#5 - Kerson Hsiao / KersonHsiao

03/21/2013 at 04:43PM

42
#6 - Andrew Hlavats / farthestworld

03/31/2013 at 01:28AM

45
#7 - Joel Elkins / dice_tea

03/01/2013 at 03:13PM

45
#8 - pftb12345 / pftb12345

04/27/2015 at 05:35AM

50
#9 - Zach Kelling / zeekay

02/23/2013 at 09:18AM

55
#10 - Pradeep Kumar / pradeep6kumar

02/24/2013 at 04:03AM

57
#11 - Trevor Powell / DoomedBunnies

03/07/2013 at 03:24AM

58
#12 - jeepee / jeepee_test

04/08/2013 at 12:57PM

65
#13 - Tyler / tylerbindon

04/09/2013 at 02:30AM

66
#14 - Allan Tokuda / atokuda

02/24/2013 at 02:43AM

66
#15 - Édouard M'tou / DouardM

03/10/2013 at 08:34PM