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

Format a long line

Reformat long lines (gq), textwidth=78, no trailing spaces.

Start file
     __     ___             _       _   _  ___ _____                               \ \   / (_)_ __ ___   (_)___  | | | |/ _ \_   _|                               \ \ / /| | '_   _ \  | / __| | |_| | | | || |                                  \ V / | | | | | | | | \__ \ |  _  | |_| || |                                   \_/  |_|_| |_| |_| |_|___/ |_| |_|\___/ |_|                                  ____ _____ _   _ _____ _____ _ _                                             / ___|_   _| | | |  ___|  ___| | |                                            \___ \ | | | | | | |_  | |_  | | |                                             ___) || | | |_| |  _| |  _| |_|_|                                            |____/ |_|  \___/|_|   |_|   (_|_)
End file
     __     ___             _       _   _  ___ _____
     \ \   / (_)_ __ ___   (_)___  | | | |/ _ \_   _|
      \ \ / /| | '_   _ \  | / __| | |_| | | | || |
       \ V / | | | | | | | | \__ \ |  _  | |_| || |
        \_/  |_|_| |_| |_| |_|___/ |_| |_|\___/ |_|
       ____ _____ _   _ _____ _____ _ _
      / ___|_   _| | | |  ___|  ___| | |
      \___ \ | | | | | | |_  | |_  | | |
       ___) || | | |_| |  _| |  _| |_|_|
      |____/ |_|  \___/|_|   |_|   (_|_)

View Diff

1c1,10
<      __     ___             _       _   _  ___ _____                               \ \   / (_)_ __ ___   (_)___  | | | |/ _ \_   _|                               \ \ / /| | '_   _ \  | / __| | |_| | | | || |                                  \ V / | | | | | | | | \__ \ |  _  | |_| || |                                   \_/  |_|_| |_| |_| |_|___/ |_| |_|\___/ |_|                                  ____ _____ _   _ _____ _____ _ _                                             / ___|_   _| | | |  ___|  ___| | |                                            \___ \ | | | | | | |_  | |_  | | |                                             ___) || | | |_| |  _| |  _| |_|_|                                            |____/ |_|  \___/|_|   |_|   (_|_)
---
>      __     ___             _       _   _  ___ _____
>      \ \   / (_)_ __ ___   (_)___  | | | |/ _ \_   _|
>       \ \ / /| | '_   _ \  | / __| | |_| | | | || |
>        \ V / | | | | | | | | \__ \ |  _  | |_| || |
>         \_/  |_|_| |_| |_| |_|___/ |_| |_|\___/ |_|
>        ____ _____ _   _ _____ _____ _ _
>       / ___|_   _| | | |  ___|  ___| | |
>       \___ \ | | | | | | |_  | |_  | | |
>        ___) || | | |_| |  _| |  _| |_|_|
>       |____/ |_|  \___/|_|   |_|   (_|_)

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 13 remaining solutions by signing in and submitting your own entry
#14 Yannik Bürkle / @yannik-b - Score: 219 - 05/18/24 @ 19:59
gqqkkkkkkkki     <Esc>+i      <Esc>+i       <Esc>+i        <Esc>+i       <Esc>$i<CR><BS><Esc>o<BS><BS><BS><BS><BS><BS><BS><Esc>+i      <Esc>i<Right><BS><BS><BS><BS><BS><BS><BS><Esc><Left><Right><Right><Left><Up>A<BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><Esc><Down><Down><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left>i      <Esc>+i       <Esc>+i       <BS><Esc><Up><Up><Up><Right><Right>i <Esc>:wq<CR>

0 comments


Created by: @maharba6

14 active golfers, 32 entries

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

05/19/2024 at 01:38PM

17
#2 - John Braxler / @braxler

05/20/2024 at 11:51AM

17
#3 - Peppa Pig / @PeppaPi95550250

05/26/2024 at 10:19AM

18
#4 - wpr__ / @wpr____

05/18/2024 at 08:36PM

18
#5 - Jean George / @JeanGeo20504212

05/20/2024 at 08:45PM

18
#6 - Aly Thobani / @alythobani

05/22/2024 at 04:45PM

19
#7 - Lennart / @lennartack

05/19/2024 at 10:25AM

19
#8 - Tatum Roaquin / @tatumroaquin

05/21/2024 at 05:51AM

29
#9 - Valacar / @valacar

05/18/2024 at 08:24PM

31
#10 - Jan Musílek / @stinovlas

06/12/2024 at 11:16AM

32
#11 - haruto009 / @haruto009

05/21/2024 at 09:30AM

34
#12 - smiech / @smiech

05/19/2024 at 11:50AM

35
#13 - Thijs / @Liulangzhe98

05/22/2024 at 11:40AM

219
#14 - Yannik Bürkle / @yannik-b

05/18/2024 at 07:59PM