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

delete swap

delete all swap

Start file
1
2
3
4
5
6
7
End file
1234567

View Diff

1,7c1
< 1
< 2
< 3
< 4
< 5
< 6
< 7
---
> 1234567

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 556 remaining solutions by signing in and submitting your own entry
#557 WangPei / @WangPei-hitman - Score: 112 - 07/02/24 @ 13:22
:s/\r/g<Left><Left><Left><Left><Left><Left>%<Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><CR><0xef><0xbc><0x9a>j:s<BS>$<BS>%s/r<BS>\r\n//<CR><Up><Up>:<Up><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>JjJJJJkJhhxlxlxlxlxlxl:wq<CR>

0 comments


Created by: @vanniuner

557 active golfers, 1788 entries

Leaderboard (lowest score wins):
5
#31 - Tom Dixon / @tmdxn

05/25/2022 at 04:32AM

5
#32 - Mr Spoony / @MrKSpoon

05/26/2022 at 01:07PM

5
#33 - Monti L / @MT_Lai

05/26/2022 at 01:34PM

5
#34 - Calum Smith / @cpmsmith

05/27/2022 at 02:21PM

5
#35 - Edan Sneh / @edan_sneh

05/27/2022 at 08:55PM

5
#36 - Test Subject / @TestSub10347886

05/28/2022 at 06:20PM

5
#37 - Kyle Channer / @KyleC_Designs

05/29/2022 at 12:42AM

5
#38 - Ekalos / @_Ekalos

05/31/2022 at 12:25PM

5
#39 - Fabio Murru / @MurruFabio

06/01/2022 at 10:50PM

5
#40 - CL / @CL58620058

06/02/2022 at 07:27AM

5
#41 - vin / @vin7654321

06/04/2022 at 09:38AM

5
#42 - Prabhat Ranjan / @prabhatr27

06/04/2022 at 04:42PM

5
#43 - mevmev / @mevmev8

06/04/2022 at 11:46PM

5
#44 - bitquence / @_bitquence

06/05/2022 at 12:50PM

5
#45 - Ivo Blöchliger / @aigledesalpes

06/05/2022 at 08:12PM

5
#46 - サイシ / @tairar_314

06/06/2022 at 07:52AM

5
#47 - zaxsne / @zaxsne

06/07/2022 at 01:24PM

5
#48 - Upi Tamminen / @vihapuu

06/08/2022 at 11:41AM

5
#49 - sapir malka / @sapir5522

06/08/2022 at 02:01PM

5
#50 - Nicolas Kreutzer / @NigiCereal

06/10/2022 at 06:53PM

5
#51 - Michel Viktor / @tomkpz

06/11/2022 at 09:17PM

5
#52 - math is what I hate / @mpnmbn

06/12/2022 at 02:16PM

5
#53 - Jason Edgecombe / @edgester

06/12/2022 at 08:34PM

5
#54 - Mario Olofo / @mario_olofo

06/13/2022 at 12:59PM

5
#55 - Kha Nguyen / @__ngtrongkha

06/14/2022 at 01:35AM

5
#56 - kjghf3f9xf2 / @kjghf3f9xf2

06/14/2022 at 04:53AM

5
#57 - Henry Chimpden Earwicker / @HChEarwicker

06/14/2022 at 05:16AM

5
#58 - Arthur DELORT / @artDelort

06/15/2022 at 02:22PM

5
#59 - YE / @DeracanthaOnos

06/16/2022 at 04:19AM

5
#60 - Mario / @MarioWolfe

06/16/2022 at 04:23AM