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

4114 active golfers, 11141 entries

Leaderboard (lowest score wins):
13
#3991 - Rag Rum / @ragrum

06/19/2015 at 03:24AM

13
#3992 - RandomShiz / @RandomShiz2

06/21/2015 at 10:41AM

13
#3993 - PierreAdrien Buisson / @pabuisson

06/23/2015 at 12:04PM

13
#3994 - Andy Locascio / @lowkaseo

08/27/2015 at 02:25AM

13
#3995 - Wes Whitney / @wes_whitney

09/03/2015 at 03:03AM

13
#3996 - Pin / @ponfelipon

10/06/2015 at 08:59PM

13
#3997 - Vladimir Leskov / @vladimirlesk

12/21/2015 at 08:24PM

13
#3998 - Pratap Koritala / @pratap_koritala

02/16/2016 at 04:32PM

13
#3999 - wk / @wearetherock

03/10/2016 at 04:31PM

13
#4000 - danny Lazarow / @dannylazarow

04/30/2016 at 03:54PM

13
#4001 - Gwendolyn Faraday / @gwen_faraday

01/04/2017 at 01:24AM

13
#4002 - Maciej Mionskowski / @maciekmm_

02/22/2017 at 11:30AM

13
#4003 - Anton Popov / @agraver

10/06/2017 at 08:55AM

13
#4004 - Matheus / @matheuusbs

05/11/2018 at 04:16PM

13
#4005 - Jinho / @Jinho24933478

06/29/2018 at 07:51AM

13
#4006 - Matheus Rezende / @matheusr_dev

10/24/2018 at 03:07AM

13
#4007 - Matthias Kausl / @sig_segv

04/22/2019 at 02:44PM

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

05/07/2019 at 10:13AM

13
#4009 - Rob Stringer / @StringerWebDev

05/08/2019 at 07:35PM

13
#4010 - sed / @811272067649

05/24/2019 at 10:56PM

13
#4011 - Daisuke Ito / @itodais

08/21/2019 at 10:50AM

13
#4012 - Hung Hoang / @hoanghun5

08/26/2019 at 12:45PM

13
#4013 - Aaron / @aaronlichtman

10/01/2019 at 02:38PM

13
#4014 - かんべ / @kanbe8810

10/06/2019 at 01:46AM

13
#4015 - mogitate / @mutemeat

11/04/2019 at 08:09AM

13
#4016 - Some Name / @spamintosh

11/28/2019 at 10:23PM

13
#4017 - Lidiya Ponomareva / @LidiyaPonomare3

12/05/2019 at 06:52PM

13
#4018 - Hohukel / @Hohukel

12/29/2019 at 09:09AM

13
#4019 - 梁(Liang リャン) / @starduliang

03/01/2020 at 12:48PM

13
#4020 - Jason / @roosjason

04/08/2020 at 07:39AM