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

570 active golfers, 1834 entries

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

09/17/2022 at 07:42AM

14
#512 - Sathyanarayanan Vaithianathan / @Sathyan88697115

10/10/2022 at 05:02PM

14
#513 - Mauricio Tellez / @mtellezj

10/27/2022 at 05:31PM

14
#514 - Max Maier / @Max_Maier_VIE

12/20/2022 at 01:32PM

14
#515 - Vincent / @Vincent49015451

07/06/2023 at 08:58AM

14
#516 - Mikołaj / @miko_aj4846

09/03/2023 at 03:10PM

14
#517 - GrafQiao / @GrafQiao

11/03/2023 at 08:06AM

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

11/28/2023 at 09:29AM

14
#519 - Gulcar / @Gulcar

01/28/2024 at 10:26AM

14
#520 - Pieter-Jan Lavaerts / @Pumpkin_Pie_Eat

03/08/2024 at 01:30PM

14
#521 - dennis / @nagolove

04/25/2024 at 12:46PM

14
#522 - Shuhei Kozasa / @shu-13

05/23/2024 at 11:38PM

14
#523 - Álvaro Silva / @ricostynha1

07/29/2024 at 09:52PM

14
#524 - TomoProg / @TomoProg

12/05/2024 at 05:20AM

14
#525 - Dani Bengl / @cb341

12/22/2025 at 10:58PM

15
#526 - Samuele Illuminati / @c0rtexx

05/20/2022 at 08:51PM

15
#527 - Van / @dangtrivan15

09/04/2022 at 08:56AM

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

10/23/2022 at 08:48PM

15
#529 - Bro / @SpeorgNot

09/20/2023 at 09:13PM

15
#530 - Haruaki Tomida / @haruyan-hopemucci

12/05/2024 at 05:15AM

16
#531 - vanniuner / @vanniuner

05/17/2022 at 02:38PM

16
#532 - compter651 / @compter651

06/01/2022 at 07:12PM

16
#533 - Christopher Dong / @jubeilicious

06/10/2022 at 09:36PM

16
#534 - Eric Bonet / @ericcbonet

10/21/2022 at 06:46AM

16
#535 - vaaqif / @vaaqif1

12/10/2022 at 09:40PM

16
#536 - 정영호 / @jeongye69914809

07/12/2023 at 10:08AM

16
#537 - Denys Tynok / @famiclone

12/04/2023 at 05:07PM

16
#538 - yujianiki20 / @yujianiki20

12/12/2024 at 04:18AM

17
#539 - Sam Fenwick / @Samwhich

06/19/2022 at 08:54PM

17
#540 - Curtis Ault / @Curtis_Ault

07/08/2022 at 08:48PM