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

3424 active golfers, 9167 entries

Leaderboard (lowest score wins):
13
#3331 - asdasd / @TheHeyHey123

05/31/2015 at 05:27AM

13
#3332 - Test Name / @krp230test

06/11/2015 at 08:04PM

13
#3333 - Alex / @ninjabassist777

06/12/2015 at 09:09PM

13
#3334 - Rag Rum / @ragrum

06/19/2015 at 03:24AM

13
#3335 - RandomShiz / @RandomShiz2

06/21/2015 at 10:41AM

13
#3336 - PierreAdrien Buisson / @pabuisson

06/23/2015 at 12:04PM

13
#3337 - Andy Locascio / @lowkaseo

08/27/2015 at 02:25AM

13
#3338 - Wes Whitney / @wes_whitney

09/03/2015 at 03:03AM

13
#3339 - Pin / @ponfelipon

10/06/2015 at 08:59PM

13
#3340 - Vladimir Leskov / @vladimirlesk

12/21/2015 at 08:24PM

13
#3341 - Pratap Koritala / @pratap_koritala

02/16/2016 at 04:32PM

13
#3342 - wk / @wearetherock

03/10/2016 at 04:31PM

13
#3343 - danny Lazarow / @dannylazarow

04/30/2016 at 03:54PM

13
#3344 - Gwendolyn Faraday / @gwen_faraday

01/04/2017 at 01:24AM

13
#3345 - Maciej Mionskowski / @maciekmm_

02/22/2017 at 11:30AM

13
#3346 - Anton Popov / @agraver

10/06/2017 at 08:55AM

13
#3347 - Matheus / @matheuusbs

05/11/2018 at 04:16PM

13
#3348 - Jinho / @Jinho24933478

06/29/2018 at 07:51AM

13
#3349 - Matheus Rezende / @matheusr_dev

10/24/2018 at 03:07AM

13
#3350 - Matthias Kausl / @sig_segv

04/22/2019 at 02:44PM

13
#3351 - うんちプログラマ / @UnchiProgrammer

05/07/2019 at 10:13AM

13
#3352 - Rob Stringer / @StringerWebDev

05/08/2019 at 07:35PM

13
#3353 - sed / @811272067649

05/24/2019 at 10:56PM

14
#3354 - Pratik / @prathik_t

04/28/2015 at 12:50PM

14
#3355 - Elizabeth HONG / @elizabethhong11

05/08/2015 at 10:23PM

14
#3356 - SkorKNURE / @SkorKNURE

05/10/2015 at 12:23AM

14
#3357 - Bruno Gonçales Lima / @bglbruno

07/18/2015 at 03:34PM

14
#3358 - Meredith E / @funwithgrevocab

02/08/2016 at 01:14AM

14
#3359 - Steven Burnett / @sdb1228

02/22/2016 at 09:07PM

14
#3360 - Harry Zak / @brooodzak

03/09/2016 at 03:07PM