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

3357 active golfers, 8983 entries

Leaderboard (lowest score wins):
7
#301 - Javier Rizzo / @javierrizzoa

06/03/2015 at 03:59AM

7
#302 - John Smith / @literacyisgood

06/03/2015 at 05:01AM

7
#303 - Ayman Farhat / @aymanfarhat

06/03/2015 at 07:16AM

7
#304 - Zack Rosen / @ZJRosen

06/04/2015 at 05:23AM

7
#305 - Smylers / @Smylers2

06/04/2015 at 02:31PM

7
#306 - Haoyang Feng / @HHAribai

06/05/2015 at 05:55AM

7
#307 - Martin Delille / @martinodelilo

06/05/2015 at 04:31PM

7
#308 - Peter Hsieh / @xfumihiro

06/06/2015 at 01:41PM

7
#309 - tehdog / @tehdog22

06/06/2015 at 04:00PM

7
#310 - David Nguyen / @nguydavi

06/06/2015 at 05:08PM

7
#311 - MARC BLUEMNER / @BLUEMNER

06/06/2015 at 10:25PM

7
#312 - Rickard Gimerstedt / @gimerstedt

06/07/2015 at 11:55AM

7
#313 - Vitalii / @veelenga

06/08/2015 at 08:36AM

7
#314 - Baleja McIntee / @0mcinteeq

06/09/2015 at 12:34PM

7
#315 - Alvaro Muñoz / @pwntester

06/09/2015 at 03:26PM

7
#316 - djh / @oneandoneis2

06/09/2015 at 04:18PM

7
#317 - Hervé Rouault / @hrouault

06/09/2015 at 07:03PM

7
#318 - Hao Deng / @haodeng

06/10/2015 at 04:30AM

7
#319 - ahumph / @ahumph

06/10/2015 at 12:57PM

7
#320 - Benjamin Villalonga / @benvillalonga

06/10/2015 at 11:29PM

7
#321 - Timothée Gauthier / @zmf_tim

06/11/2015 at 10:40PM

7
#322 - CM Déjardin ن / @CMDej

06/12/2015 at 09:16AM

7
#323 - Vivekanandan / @viveklikesyou

06/14/2015 at 03:33AM

7
#324 - hidnasio / @hidnasio

06/15/2015 at 12:33AM

7
#325 - Josh Phillips / @japhillips87

06/17/2015 at 07:45PM

7
#326 - Renan Florez / @DglgmutR

06/18/2015 at 01:50AM

7
#327 - davebalmain / @davebalmain

06/18/2015 at 07:27AM

7
#328 - Michael Liou / @mlliou112

06/19/2015 at 01:39AM

7
#329 - Omar Abou Mrad / @omaraboumrad

06/19/2015 at 08:43AM

7
#330 - I / @ForgetIt17

06/19/2015 at 09:40AM