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 28 remaining solutions by signing in and submitting your own entry
#29 Roman / @gkroman - Score: 301 - 11/19/24 @ 03:26
wi<Left><CR><Right><Right><Right><Right><Right><CR><Right><Right><Right><Right><Right><Esc>uu:%s/ /\n/g<CR><Esc>u<Left><Right><Right><Right><Right><Right>:noh<CR><Esc><Left><Right>i<CR><Right><Right><Right><Right><Right><CR><Right><Right><Right><Right><Right><CR><Right><Right><Right><CR><Right><Right><Right><Right><Del><CR><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><CR><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><CR><Right><Right><Right><Right><Del><CR><Right><Right><Right><CR><Right><Right><Right><Right><CR><Right><Right><Right><Right><Right><Right><Del><CR><End><BS><Home><Esc><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><C-V><Down><Up><Esc>i <Down><Left> <Down><Left>  <Down><Left><Left>   <Down><Left><Left><Left><Esc><C-V><Down><Down><Down><Down><Down><Down>I     <Esc><Right>w<Down><C-V><Down><Down><Down><Down><Down>I   <Esc><Down>w<C-V><Down><Down><Down><Down>I     <Esc><Right>w<Down><C-V><Down><Down><Down>I        <Esc><Down>w<C-V><Down><Down>I             <Esc>w<Down><C-V><Down>I                     <Esc><Down>wi                                  <Esc>:wq<CR>

0 comments


Created by: @pacuna

29 active golfers, 85 entries

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

11/05/2024 at 10:05PM

25
#2 - Peppa Pig / @PeppaPigSg

11/06/2024 at 01:03AM

25
#3 - John Braxler / @braxler

11/06/2024 at 06:53PM

25
#4 - Pstock7 / @Pstock7

01/27/2025 at 05:17AM

32
#5 - MatFriend / @MatFriend

11/05/2024 at 04:36AM

32
#6 - ShookerAndBeta / @Shooker2012

11/07/2024 at 02:40AM

32
#7 - Aliaksandr / @Admiralissimus

12/14/2024 at 07:17PM

32
#8 - Alexander Cai / @adzcai

02/01/2025 at 06:07PM

40
#9 - Daniel David Goren / @DanielDavidGor1

03/16/2025 at 11:04PM

42
#10 - martinorav / @martinorav

01/12/2025 at 06:40PM

42
#11 - Rentib / @Rentib

02/21/2025 at 02:02PM

43
#12 - 0xf00ff00f / @0xf00ff00f

01/09/2025 at 12:39PM

44
#13 - ehre9305 / @ehre9305

11/01/2024 at 11:52PM

46
#14 - Brieuc Praud / @brieuc-praud

11/01/2024 at 08:12AM

46
#15 - JMTed / @JMTed

11/01/2024 at 08:47PM

47
#16 - 林新 / @Lingshinx

11/13/2024 at 05:22PM

47
#17 - Meya / @meya-zhao

11/19/2024 at 12:09PM

47
#18 - Frédéric Heulin / @talineo

12/29/2024 at 10:42PM

48
#19 - mysper / @mysper

11/20/2024 at 08:19AM

57
#20 - Matthew Finlayson / @mattf1n

10/31/2024 at 02:31AM

63
#21 - Kamal Aghayev / @agayev169

03/01/2025 at 08:03PM

65
#22 - k1mosabe / @k1mosabe

12/02/2024 at 08:49PM

66
#23 - Oleksii Sanin / @AlexSanin

11/19/2024 at 02:23PM

73
#24 - Ivan Prikaznov / @Prikaz98

11/01/2024 at 08:39AM

77
#25 - lvaneesbeeck / @lvaneesbeeck

01/02/2025 at 08:40PM

86
#26 - SRINIVASU SALADI / @SRINIVASUS22587

03/12/2025 at 11:26AM

108
#27 - Pablo Acuna / @pacuna

10/31/2024 at 12:42AM

109
#28 - Heitor Dantas / @heitordnts

12/18/2024 at 05:35PM

301
#29 - Roman / @gkroman

11/19/2024 at 03:26AM