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
#91 - WhyAre / @WhyAre52

07/24/2022 at 12:37AM

5
#92 - mika / @mika31120321

07/29/2022 at 04:31PM

5
#93 - Danilo J. S. Bellini 🥊🇧🇷 / @danilobellini

07/30/2022 at 03:55AM

5
#94 - nauj / @nauj_w

07/30/2022 at 04:09AM

5
#95 - ohwell / @KiranClose

07/30/2022 at 02:50PM

5
#96 - Maksim Galinchik / @MGalinchik

08/01/2022 at 04:22PM

5
#97 - Ilay Skutelsky / @ISkutelsky

08/01/2022 at 09:49PM

5
#98 - alteredorange / @alteredorange

08/02/2022 at 10:10PM

5
#99 - z00master / @z00master

08/03/2022 at 12:03AM

5
#100 - potatol33t / @potatol33t

08/05/2022 at 10:28PM

5
#101 - George Granberry / @JudgeJerj

08/06/2022 at 11:12PM

5
#102 - anakojm / @anakojm

08/11/2022 at 06:05AM

5
#103 - Nick Salesky / @NickSalesky

08/13/2022 at 04:46AM

5
#104 - Abdelrahman Madkour / @A3Madkour

08/13/2022 at 05:52PM

5
#105 - James Houghton / @jamesthoughton

08/14/2022 at 04:08AM

5
#106 - Laurent Atlan / @laurentatlan1

08/14/2022 at 08:07PM

5
#107 - James Casey / @hanavi

08/18/2022 at 01:30AM

5
#108 - Abnermtj / @Abnerjr19

08/18/2022 at 01:00PM

5
#109 - Ryan / @wzdryan

08/19/2022 at 09:51AM

5
#110 - Float / @Floaten1

08/21/2022 at 08:26AM

5
#111 - makita0x01 / @Makita81234049

08/22/2022 at 08:57AM

5
#112 - Syntax Shift / @ShiftSyntax

08/24/2022 at 09:16AM

5
#113 - Brandon / @Brandon10678836

08/24/2022 at 03:51PM

5
#114 - Desentcare / @ashuyali

08/25/2022 at 01:17PM

5
#115 - Mika Dede / @xerv0n

09/02/2022 at 04:49AM

5
#116 - キムラ・OPEL・ユウジ / @kimurayuuji79

09/05/2022 at 03:50AM

5
#117 - Ratkovszki István / @RatkovszkiIstvn

09/05/2022 at 09:03AM

5
#118 - K Br / @KBr20097882

09/05/2022 at 09:38PM

5
#119 - . / @lacksommelier

09/06/2022 at 08:00AM

5
#120 - Andrew Liu / @AndrewL45936893

09/10/2022 at 04:35PM