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

4152 active golfers, 11318 entries

Leaderboard (lowest score wins):
7
#1111 - Henry Woolenthorpe / @woolenthorpe

07/03/2018 at 10:20PM

7
#1112 - Alfredo Ribeiro / @aribeiro

07/05/2018 at 05:40PM

7
#1113 - Remus Dalrymple / @bornintheflames

07/06/2018 at 03:32AM

7
#1114 - Zak Wright / @TheZakWright

07/07/2018 at 03:41AM

7
#1115 - Marco Meyer / @marcomeyerVFX

07/07/2018 at 09:56PM

7
#1116 - Puj / @MrPuj

07/07/2018 at 11:09PM

7
#1117 - xer0.5ive / @Bibekshah

07/09/2018 at 03:00PM

7
#1118 - Artsiom Kashkou / @pochka15

07/10/2018 at 09:36AM

7
#1119 - Judy / @Bibilidibipi

07/10/2018 at 04:40PM

7
#1120 - Gareth Miller / @CTingCTer

07/13/2018 at 08:49AM

7
#1121 - Dylan Waits / @pianoman320

07/15/2018 at 12:15AM

7
#1122 - Sérgio Mucciaccia / @SMucciaccia

07/17/2018 at 04:47PM

7
#1123 - Tom Ient / @tom_ient

07/19/2018 at 10:11AM

7
#1124 - Guilherme Costa / @guidohcosta

07/21/2018 at 11:43AM

7
#1125 - Rajesh Sharma / @deepredsky

07/24/2018 at 03:57PM

7
#1126 - Andrew Peterson / @FungalRaincloud

07/27/2018 at 03:37AM

7
#1127 - ハヤシ / @0__098

07/28/2018 at 02:47AM

7
#1128 - heisenderp / @0xheisenderp

08/01/2018 at 09:46PM

7
#1129 - Samuel Hsiang / @alwayswimmin

08/03/2018 at 06:25AM

7
#1130 - Hugo / @szeyattai

08/05/2018 at 08:08AM

7
#1131 - A / @777Android777

08/05/2018 at 09:10PM

7
#1132 - O / @O34721877

08/07/2018 at 06:16AM

7
#1133 - Theo Andersen Carton / @TheoAndersen

08/07/2018 at 06:51PM

7
#1134 - Nursan / @Nursan73316482

08/08/2018 at 08:29PM

7
#1135 - Thomas W. / @webgardener75

08/10/2018 at 03:20PM

7
#1136 - _Tpouhuk / @Tpouhuk2

08/11/2018 at 05:46PM

7
#1137 - Keldwik Chaldain / @Suskeyhose

08/14/2018 at 09:10PM

7
#1138 - Simon Ingelsson / @_DeVVaN_

08/15/2018 at 02:25PM

7
#1139 - Daichi / @daichi1014

08/16/2018 at 02:47AM

7
#1140 - Fergus Longley / @FergusLongley

08/18/2018 at 03:42PM