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

512 active golfers, 1639 entries

Leaderboard (lowest score wins):
5
#181 - 0xdaydream / @0xdaydream_

01/07/2023 at 01:01PM

5
#182 - test-and-sun / @testandsun1

01/10/2023 at 04:24PM

5
#183 - BPA Free / @programneer

01/12/2023 at 06:54AM

5
#184 - KyuYoung Heo / @bbvch13531

01/12/2023 at 05:45PM

5
#185 - yurei / @yurei38667012

01/17/2023 at 09:50AM

5
#186 - Finlay McAfee / @finsqm

01/20/2023 at 11:12AM

5
#187 - ebs 2.1 / @ebstootired

01/26/2023 at 04:45PM

5
#188 - g-guy / @guydunigo

02/01/2023 at 02:36PM

5
#189 - Lion de Bell / @CLGBamboo

02/01/2023 at 06:09PM

5
#190 - かみひろ / @km_hr

02/04/2023 at 02:24AM

5
#191 - tneeds / @tneeds12

02/06/2023 at 01:12PM

5
#192 - 马海洋 / @LG41bT7ZvqOdFl3

02/07/2023 at 04:10AM

5
#193 - Jay Solana / @JaySolana3

02/07/2023 at 06:04AM

5
#194 - DevilBb / @bb6_devil

02/08/2023 at 07:49AM

5
#195 - Sushrut Shirole / @sushrutshirole

02/09/2023 at 12:51AM

5
#196 - Hugo Tai / @HugoTai100

02/09/2023 at 08:45AM

5
#197 - usermod / @g_usermod

02/09/2023 at 07:27PM

5
#198 - e_e / @eleloi

02/10/2023 at 08:18PM

5
#199 - Jakob Föger / @drvolcano86

02/17/2023 at 12:27PM

5
#200 - Wüstengecko / @Wuestengecko

02/17/2023 at 02:01PM

5
#201 - 蛙爹 / @Joe53572723

02/19/2023 at 09:13AM

5
#202 - Leonard Bereska / @LeonardBereska

02/19/2023 at 06:10PM

5
#203 - Ahmed Mashalla / @Hahgaayyyy

02/28/2023 at 08:18PM

5
#204 - ☯️ / @BHanq_1

02/28/2023 at 10:37PM

5
#205 - tomcola / @tomcola72

03/01/2023 at 05:16PM

5
#206 - 黄高昂 / @suewiq

03/02/2023 at 01:08AM

5
#207 - Satsuki Toshino / @asbestosLand

03/02/2023 at 01:31AM

5
#208 - 초롱이 / @treebird82

03/02/2023 at 07:21AM

5
#209 - Berkay Berabi / @BerkayBerabi

03/04/2023 at 10:34PM

5
#210 - @AndrewRadev@hachyderm.io / @andrewradev

03/06/2023 at 06:13PM