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

3351 active golfers, 8967 entries

Leaderboard (lowest score wins):
15
#3301 - Lunar Mayor / @Lunarmayor

12/17/2014 at 10:03PM

15
#3302 - jagardaniel / @jagardaniel

01/19/2015 at 01:12AM

15
#3303 - Gustavo Matias / @gu_matias

03/02/2015 at 10:41PM

15
#3304 - Magnus Stavngaard / @bus3450

06/01/2015 at 05:38PM

15
#3305 - Kostas Lekkas / @kwstasl

06/01/2015 at 10:38PM

15
#3306 - Eduardo Hashimoto / @eduhashi

12/15/2016 at 12:10PM

15
#3307 - Brandon Height / @Lask0x

08/08/2017 at 01:12AM

15
#3308 - Isaac Haller 🏴 / @isaac_haller

11/15/2017 at 04:43PM

15
#3309 - Michael Heyman / @michaelheyman

11/16/2017 at 02:26AM

15
#3310 - 신지훈 / @iwUeDn1UGj3aXZ3

06/29/2018 at 08:02AM

15
#3311 - Jake Hasler / @jakehasler

09/12/2018 at 03:17PM

15
#3312 - whiteonyx.go / @whiteonyx_go

12/27/2018 at 01:01AM

16
#3313 - Linh Bui / @LinhPBui

12/22/2014 at 07:19AM

16
#3314 - Javier Fernández / @javierfdezg

06/09/2015 at 02:21PM

16
#3315 - shellfire32 / @shellfire32

11/25/2016 at 02:03PM

16
#3316 - miracle / @miracle73970854

05/12/2018 at 01:48AM

16
#3317 - Badr B. / @MrZeroo00

01/29/2019 at 02:28PM

17
#3318 - john crepezzi! / @seejohnrun

01/14/2015 at 11:41PM

17
#3319 - ASH: Freedom / @oselskyi

05/16/2015 at 06:03AM

17
#3320 - Stas Karpov / @dragothefiery

02/18/2016 at 09:43AM

17
#3321 - Maciej Białorucki / @BialoruckiM

04/23/2017 at 11:19AM

17
#3322 - Tim Tejsner / @datimsta

10/26/2017 at 10:09PM

17
#3323 - saurabh tripathi / @saurabh908583

08/10/2018 at 04:24PM

17
#3324 - Oliver Wilkie / @oliwilks

11/28/2018 at 12:59AM

18
#3325 - Vignesh Shanmugam / @_vigneshh

01/19/2015 at 07:10AM

18
#3326 - bduong / @bduong3

03/23/2015 at 08:24PM

18
#3327 - فيصل الدليجان / @aldilaff

03/24/2015 at 05:58AM

18
#3328 - ( ˘⊖˘) 。o(…!!!) / @noiu611

08/20/2018 at 01:40PM

18
#3329 - Yoshio / @Yoshio_Online

10/06/2018 at 10:26AM

20
#3330 - Rahul Ravu / @rravu3

01/30/2015 at 04:40AM