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

47 active golfers, 157 entries

Leaderboard (lowest score wins):
60
#31 - rybenmensch / @rybenmensch

04/17/2025 at 02:14PM

62
#32 - Dani Bengl / @cb341

12/22/2025 at 09:23PM

63
#33 - Kamal Aghayev / @agayev169

03/01/2025 at 08:03PM

65
#34 - k1mosabe / @k1mosabe

12/02/2024 at 08:49PM

66
#35 - Oleksii Sanin / @AlexSanin

11/19/2024 at 02:23PM

73
#36 - Ivan Prikaznov / @Prikaz98

11/01/2024 at 08:39AM

74
#37 - canabadyweb / @canabadyweb

08/06/2025 at 05:13AM

74
#38 - Seagull2004 / @Seagull2004

12/11/2025 at 02:34PM

75
#39 - Rafe Murray / @rafe-murray

01/21/2026 at 02:17AM

77
#40 - lvaneesbeeck / @lvaneesbeeck

01/02/2025 at 08:40PM

80
#41 - Everardo J. Barojas / @ebarojas

02/10/2026 at 09:56PM

81
#42 - Shreyas Ravi / @shreyasravi320

02/10/2026 at 09:29PM

86
#43 - SRINIVASU SALADI / @SRINIVASUS22587

03/12/2025 at 11:26AM

108
#44 - Pablo Acuna / @pacuna

10/31/2024 at 12:42AM

109
#45 - Heitor Dantas / @heitordnts

12/18/2024 at 05:35PM

273
#46 - se / @sairutra

12/15/2025 at 09:23AM

301
#47 - Roman / @gkroman

11/19/2024 at 03:26AM