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 54862fbb3f90ac0002904cf5

Just the middle

Delete the instructions at the top and bottom.

Start file
Leave only the
numbered lines.
LINE 1
LINE 2
LINE 3
That's all.
Thank you
very much.
End file
LINE 1
LINE 2
LINE 3

View Diff

1,2d0
< Leave only the
< numbered lines.
6,8d3
< That's all.
< Thank you
< very much.

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 3561 remaining solutions by signing in and submitting your own entry
#3562 휘람 / @Brandhwi_0129 - Score: 120 - 06/29/18 @ 08:34
sdj<Down><Right><Left><Down><Left><Left><Left><Left><Left><Left><Left><Left><Left><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><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><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><BS><BS><BS>ZZ<BS><BS><Esc>ZZ

@saurabh908583: sdj -- dj make sense it deletes the top 2 lines for me but if I s press sdj it does 'Leave only the' >>>> 'djave only the' ... how did you do it? do you have key map

1 comment


Created by: @udioica

3562 active golfers, 9544 entries

Leaderboard (lowest score wins):
7
#1081 - Robopengwin / @robopengwin

05/03/2018 at 08:43PM

7
#1082 - SplinterPie / @splinter_pie

05/04/2018 at 07:00AM

7
#1083 - Alexey Shiklomanov / @ashiklom711

05/04/2018 at 01:29PM

7
#1084 - Justin Hoyt / @JustinHoyt24

05/04/2018 at 02:25PM

7
#1085 - Eugene / @youjeannn

05/04/2018 at 05:32PM

7
#1086 - golfer / @golfer30767399

05/04/2018 at 09:43PM

7
#1087 - vimgolfdummy / @vimgolfdummy

05/05/2018 at 02:23PM

7
#1088 - Thies / @Thies93083981

05/07/2018 at 11:36AM

7
#1089 - Kaydo Alders / @Yousousen

05/07/2018 at 09:02PM

7
#1090 - NGM / @gmnimrod1

05/08/2018 at 09:04AM

7
#1091 - Owen Loughran / @_ObeseAnorexic_

05/08/2018 at 06:29PM

7
#1092 - fdasfasfasga / @deteriorateredu

05/10/2018 at 04:09PM

7
#1093 - Andy Balaam / @andybalaam

05/11/2018 at 10:27AM

7
#1094 - Matt Aschmann / @ma7hatter

05/21/2018 at 06:16PM

7
#1095 - Ψαροκροκέτα / @psarokroketa

05/24/2018 at 05:27PM

7
#1096 - Don Nguyen / @baodon2703

05/25/2018 at 09:39AM

7
#1097 - omrisarig / @omrisarig

06/02/2018 at 06:04PM

7
#1098 - Alain / @carpikes

06/04/2018 at 01:13AM

7
#1099 - Davidoir / @Davidoir

06/07/2018 at 09:49AM

7
#1100 - Jules Wichita / @octarlol

06/07/2018 at 09:24PM

7
#1101 - crateus / @crateus4

06/11/2018 at 09:39AM

7
#1102 - fayard / @fayard43698270

06/11/2018 at 01:43PM

7
#1103 - deeplow / @deeplow1337

06/15/2018 at 08:48PM

7
#1104 - wolnosc / @wolnosc5

06/15/2018 at 09:21PM

7
#1105 - Luan Potter / @luanpotter27

06/18/2018 at 02:27AM

7
#1106 - Paul Jones / @thepauljones

06/25/2018 at 09:42AM

7
#1107 - AnaverageJoe / @AnaverageJ

06/28/2018 at 09:41AM

7
#1108 - eL Bunda / @elbund4

06/30/2018 at 10:02PM

7
#1109 - Daniël De Koker / @daniel_koker

07/01/2018 at 09:39AM

7
#1110 - lilei0825 / @lilei08251

07/03/2018 at 01:31AM