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 4204 remaining solutions by signing in and submitting your own entry
#4205 휘람 / @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

4205 active golfers, 11473 entries

Leaderboard (lowest score wins):
7
#1201 - 𝚃𝚒𝚝𝚘𝚞𝚊𝚗 𝚃𝚎ðšĒ𝚜𝚜𝚒𝚎𝚛 / @TitouanT_

02/25/2019 at 09:07PM

7
#1202 - Bruce.Z.Lee / @cvilo4ZLK3OD9WG

02/28/2019 at 03:32AM

7
#1203 - LUTZ Jean / @Croustibot

03/13/2019 at 03:27PM

7
#1204 - Emil Braserud / @Erdustiggen

03/16/2019 at 02:05PM

7
#1205 - longB / @longB77353628

03/19/2019 at 05:43AM

7
#1206 - Parsa Amini / @ParsaAmini

03/19/2019 at 05:42PM

7
#1207 - zh0ng / @zh00ng

03/20/2019 at 09:56AM

7
#1208 - k24w24 / @k24w24

03/21/2019 at 12:06AM

7
#1209 - Raul / @Raul50174499

03/24/2019 at 05:33AM

7
#1210 - Isaak Meier / @IsaakMeier

03/26/2019 at 05:08PM

7
#1211 - 𝕜ð•Ķð•Ąð•Šð•”ð•™ / @skupych

03/27/2019 at 02:28PM

7
#1212 - Maximilian F. / @TheMaex

03/30/2019 at 03:08AM

7
#1213 - Jiho Noh / @JihoNoh

04/01/2019 at 11:29PM

7
#1214 - Mark Stillwell / @marklee77

04/04/2019 at 09:49PM

7
#1215 - Herman Stavelin / @HsBruker

04/05/2019 at 04:28PM

7
#1216 - David Accomazzo / @WordsofDefiance

04/11/2019 at 10:38PM

7
#1217 - synic@ $ :(){ :|:& };: / @synic_m

04/14/2019 at 01:37PM

7
#1218 - p2ni / @p2noc

04/14/2019 at 03:54PM

7
#1219 - alekfed / @alek_fed

04/14/2019 at 04:58PM

7
#1220 - ãŠč–Žæ‰‹åļģ / @iW4Wz6PpCiqyGqH

04/17/2019 at 01:42AM

7
#1221 - Mekhi Thomas / @ReelGreenRanger

04/25/2019 at 05:08PM

7
#1222 - Grant / @grant_7788

04/26/2019 at 10:42AM

7
#1223 - Kai.Li / @KaiLi19

04/28/2019 at 06:04AM

7
#1224 - ImaNotgate / @INotgate

04/28/2019 at 10:18PM

7
#1225 - ow / @ow34480012

04/30/2019 at 08:45PM

7
#1226 - eric huang / @EricGodhand4826

05/04/2019 at 06:25PM

7
#1227 - Frede Emil / @Frede_Eb

05/05/2019 at 02:57PM

7
#1228 - Manos Koutselakis / @koutselakis_m

05/05/2019 at 04:23PM

7
#1229 - Quinn Collins / @Quinn00239061

05/07/2019 at 01:07PM

7
#1230 - JvdB01 / @JvdB001

05/08/2019 at 11:13AM