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

4214 active golfers, 11496 entries

Leaderboard (lowest score wins):
7
#1471 - OtterPy / @OtterPy

01/27/2021 at 09:03AM

7
#1472 - Arya Kumar / @SusSquirrel

05/21/2021 at 04:11PM

7
#1473 - vim_maxter / @MaxterVim

07/02/2021 at 12:55PM

7
#1474 - lydxn / @lydxn1

07/29/2021 at 01:34AM

7
#1475 - Jean George / @JeanGeo20504212

09/07/2021 at 11:05PM

7
#1476 - Max / @Max17868626

11/16/2021 at 03:41AM

7
#1477 - Flimsy Giraffe / @flimsy_giraffe

11/27/2021 at 06:56PM

7
#1478 - James Duffy / @jduffy3

04/08/2022 at 11:35AM

7
#1479 - YaruCar / @yaru_car

05/22/2022 at 02:57PM

7
#1480 - russellzhaomao / @russellzhaomao

05/26/2022 at 07:58AM

7
#1481 - Alex / @AlexanderHeatl2

07/06/2022 at 05:12PM

7
#1482 - Jay R / @RonatinJ

09/07/2022 at 06:20PM

7
#1483 - Manavi Ghorpade / @ManaviGhorpade

09/10/2022 at 07:05AM

7
#1484 - Kausic / @Kausic99

09/10/2022 at 10:57PM

7
#1485 - Priyanka Vissamsetty Rao / @priyankavrao97

09/10/2022 at 11:49PM

7
#1486 - Tejaswini Deshmukh / @todeshmukh

09/11/2022 at 12:53AM

7
#1487 - Daksha Chatur / @DakshaChatur

09/11/2022 at 02:07AM

7
#1488 - Akshay Barpute / @akshaybarpute

09/11/2022 at 05:50AM

7
#1489 - AbhilashSreenivasa / @AbhilashSreeni7

09/11/2022 at 07:14PM

7
#1490 - Parrth Pandey / @parrth1808

09/11/2022 at 09:09PM

7
#1491 - Saurabh / @saurabhDuzumaki

09/11/2022 at 09:20PM

7
#1492 - Rohit Yadav / @yrohit250

09/11/2022 at 10:00PM

7
#1493 - Rohit Raut / @rohit_raut_18

09/11/2022 at 10:12PM

7
#1494 - monika gadage / @gadage_moni

09/11/2022 at 10:45PM

7
#1495 - Jui Ulhas Dakhave / @JuiDakhave

09/11/2022 at 11:27PM

7
#1496 - kunal vora / @Kunal_vora9

09/12/2022 at 05:24AM

7
#1497 - Santosh Latpate / @sblatpate

09/12/2022 at 01:04PM

7
#1498 - Janzen / @__Coos

09/19/2022 at 10:39AM

7
#1499 - vimmac / @vimmac13823

06/14/2023 at 09:08AM

7
#1500 - 咸糖🎯 / @GIA917229015

07/09/2023 at 07:35AM