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

563 active golfers, 1808 entries

Leaderboard (lowest score wins):
14
#511 - GrafQiao / @GrafQiao

11/03/2023 at 08:06AM

14
#512 - @abimelechbeutelbilch@fulda.social 𝕏 / @FHashitoku

11/28/2023 at 09:29AM

14
#513 - Gulcar / @Gulcar

01/28/2024 at 10:26AM

14
#514 - Pieter-Jan Lavaerts / @Pumpkin_Pie_Eat

03/08/2024 at 01:30PM

14
#515 - dennis / @nagolove

04/25/2024 at 12:46PM

14
#516 - Shuhei Kozasa / @shu-13

05/23/2024 at 11:38PM

14
#517 - Álvaro Silva / @ricostynha1

07/29/2024 at 09:52PM

14
#518 - TomoProg / @TomoProg

12/05/2024 at 05:20AM

15
#519 - Samuele Illuminati / @c0rtexx

05/20/2022 at 08:51PM

15
#520 - Van / @dangtrivan15

09/04/2022 at 08:56AM

15
#521 - Jérémy VDW / @jeremyvdw

10/23/2022 at 08:48PM

15
#522 - Bro / @SpeorgNot

09/20/2023 at 09:13PM

15
#523 - Haruaki Tomida / @haruyan-hopemucci

12/05/2024 at 05:15AM

16
#524 - vanniuner / @vanniuner

05/17/2022 at 02:38PM

16
#525 - compter651 / @compter651

06/01/2022 at 07:12PM

16
#526 - Christopher Dong / @jubeilicious

06/10/2022 at 09:36PM

16
#527 - Eric Bonet / @ericcbonet

10/21/2022 at 06:46AM

16
#528 - vaaqif / @vaaqif1

12/10/2022 at 09:40PM

16
#529 - 정영호 / @jeongye69914809

07/12/2023 at 10:08AM

16
#530 - Denys Tynok / @famiclone

12/04/2023 at 05:07PM

16
#531 - yujianiki20 / @yujianiki20

12/12/2024 at 04:18AM

17
#532 - Sam Fenwick / @Samwhich

06/19/2022 at 08:54PM

17
#533 - Curtis Ault / @Curtis_Ault

07/08/2022 at 08:48PM

17
#534 - Kshitij G 1 / @dragonfruitg44

09/22/2023 at 02:20PM

17
#535 - 無所畏懼 / @littlepantstw

01/27/2024 at 04:15AM

17
#536 - Martin Harvan / @martinhrvn

04/26/2024 at 12:30PM

17
#537 - Guillaume Leon / @GuillaumeOnepilot

06/26/2024 at 09:52AM

18
#538 - jingle / @zengjinc

05/24/2022 at 11:43AM

18
#539 - Briel Santana / @briel_santana

06/02/2022 at 09:54PM

18
#540 - James Makela / @jamesmakela0

02/28/2023 at 01:02PM