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

37 active golfers, 127 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

25
#5 - Daniel Fleischman / @danielf

05/05/2025 at 08:12PM

25
#6 - Leon Kacowicz / @leonkacowicz

05/05/2025 at 09:03PM

32
#7 - MatFriend / @MatFriend

11/05/2024 at 04:36AM

32
#8 - ShookerAndBeta / @Shooker2012

11/07/2024 at 02:40AM

32
#9 - Aliaksandr / @Admiralissimus

12/14/2024 at 07:17PM

32
#10 - Alexander Cai / @adzcai

02/01/2025 at 06:07PM

33
#11 - Gibson Starkweather / @boaf

05/29/2025 at 10:41PM

40
#12 - Daniel David Goren / @DanielDavidGor1

03/16/2025 at 11:04PM

42
#13 - martinorav / @martinorav

01/12/2025 at 06:40PM

42
#14 - Rentib / @Rentib

02/21/2025 at 02:02PM

43
#15 - 0xf00ff00f / @0xf00ff00f

01/09/2025 at 12:39PM

44
#16 - ehre9305 / @ehre9305

11/01/2024 at 11:52PM

44
#17 - winter-loo / @winter-loo

05/27/2025 at 05:51PM

45
#18 - Robert Gu / @ArchWand

05/23/2025 at 05:57PM

46
#19 - Brieuc Praud / @brieuc-praud

11/01/2024 at 08:12AM

46
#20 - JMTed / @JMTed

11/01/2024 at 08:47PM

47
#21 - æž—æ–° / @Lingshinx

11/13/2024 at 05:22PM

47
#22 - Meya / @meya-zhao

11/19/2024 at 12:09PM

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

12/29/2024 at 10:42PM

48
#24 - mysper / @mysper

11/20/2024 at 08:19AM

56
#25 - Jaxson Pahukula / @jaxsonp

04/26/2025 at 10:59PM

57
#26 - Matthew Finlayson / @mattf1n

10/31/2024 at 02:31AM

58
#27 - daviddcox / @daviddcox

04/26/2025 at 10:57PM

60
#28 - rybenmensch / @rybenmensch

04/17/2025 at 02:14PM

63
#29 - Kamal Aghayev / @agayev169

03/01/2025 at 08:03PM

65
#30 - k1mosabe / @k1mosabe

12/02/2024 at 08:49PM