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 9v006722bece000000000576

The Fibonacci Spacer

Split the words, remove punctuation and add spaces before each line following the Fibonacci sequence (0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89)

Start file
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed erat ligula, facilisis.
End file
Lorem
 ipsum
 dolor
  sit
   amet
     consectetur
        adipiscing
             elit
                     Sed
                                  erat
                                                       ligula
                                                                                         facilisis

View Diff

1c1,12
< Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed erat ligula, facilisis.
---
> Lorem
>  ipsum
>  dolor
>   sit
>    amet
>      consectetur
>         adipiscing
>              elit
>                      Sed
>                                   erat
>                                                        ligula
>                                                                                          facilisis

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 8 remaining solutions by signing in and submitting your own entry
#9 Pablo Acuna / @pacuna - Score: 108 - 10/31/24 @ 00:42
:s/[,.]//g<CR>:s/ /\r/g<CR>gg:let a=0|let b=1<CR>qq:exe "normal! i".repeat(' ',a)<CR>:let c=a+b|let a=b|let b=c<CR><CR>q11@qZZ

0 comments


Created by: @pacuna

9 active golfers, 15 entries

Leaderboard (lowest score wins):
28
#1 - Danilo J. S. Bellini 🥊🇧🇷 / @danilobellini

11/04/2024 at 12:35AM

32
#2 - John Braxler / @braxler

10/31/2024 at 01:12PM

32
#3 - Peppa Pig / @PeppaPi95550250

11/04/2024 at 05:04AM

44
#4 - ehre9305 / @ehre9305

11/01/2024 at 11:52PM

46
#5 - Brieuc Praud / @brieuc-praud

11/01/2024 at 08:12AM

46
#6 - JMTed / @JMTed

11/01/2024 at 08:47PM

57
#7 - Matthew Finlayson / @mattf1n

10/31/2024 at 02:31AM

73
#8 - Ivan Prikaznov / @Prikaz98

11/01/2024 at 08:39AM

108
#9 - Pablo Acuna / @pacuna

10/31/2024 at 12:42AM