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

555 active golfers, 1786 entries

Leaderboard (lowest score wins):
5
#211 - RosaTryp / @RosaTryp

03/10/2023 at 03:15PM

5
#212 - reo101 / @reo101gamer

03/13/2023 at 12:42AM

5
#213 - Ted / @TodorDukov

03/13/2023 at 03:09PM

5
#214 - Patrykduda / @Patrykduda17

03/13/2023 at 07:22PM

5
#215 - jasonlee / @jasonle61136657

03/14/2023 at 03:55PM

5
#216 - Alexander Curtis / @AlexOnCode

03/24/2023 at 05:50PM

5
#217 - François / @mortyZZ

03/25/2023 at 04:48PM

5
#218 - Isaac Harries / @IsaacHarries2

03/30/2023 at 04:26PM

5
#219 - Ian Horton / @IAMIANHORTON

03/31/2023 at 08:36AM

5
#220 - 陈俊池 / @calm_furious

03/31/2023 at 10:28PM

5
#221 - Aliasf / @rammenmaster96

04/01/2023 at 04:15PM

5
#222 - Francois Marais / @maraisf

04/04/2023 at 06:23PM

5
#223 - Ryan Brate / @brate_ryan

04/06/2023 at 12:59PM

5
#224 - Balthazar Harnawe / @HotNastySpeed

04/07/2023 at 04:06PM

5
#225 - Arne / @ArneVanM

04/07/2023 at 07:45PM

5
#226 - FirstModus / @Nolimimer

04/08/2023 at 05:00PM

5
#227 - Selvaganapathy P / @canabady

04/20/2023 at 01:13AM

5
#228 - Sergio / @SergioVl12

04/22/2023 at 09:45AM

5
#229 - parazidi / @parazidi

04/23/2023 at 12:29PM

5
#230 - Dominik Filker / @DFilker

04/23/2023 at 09:05PM

5
#231 - owner / @owner87643936

04/24/2023 at 07:01PM

5
#232 - NOT_FOR_TWEETS / @_NOTIMPLEMENTED

04/25/2023 at 08:27AM

5
#233 - Golfer / @golfplayervim

04/26/2023 at 10:09AM

5
#234 - someperson150 / @someperson150

05/20/2023 at 12:38PM

5
#235 - Max Shen / @m4xshen

05/24/2023 at 06:42AM

5
#236 - Colby Brown / @colbyabrown

05/24/2023 at 08:54PM

5
#237 - V / @account_test_k

05/25/2023 at 04:36PM

5
#238 - Spam Mail / @mrfdot

05/26/2023 at 01:12AM

5
#239 - SmoggyFog / @SmoggyFog

05/30/2023 at 06:07AM

5
#240 - Sean Dubb / @seandubb_

05/30/2023 at 07:42PM