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

4205 active golfers, 11473 entries

Leaderboard (lowest score wins):
17
#4171 - Oliver Wilkie / @oliwilks

11/28/2018 at 12:59AM

18
#4172 - Vignesh Shanmugam / @_vigneshh

01/19/2015 at 07:10AM

18
#4173 - bduong / @bduong3

03/23/2015 at 08:24PM

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

03/24/2015 at 05:58AM

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

08/20/2018 at 01:40PM

18
#4176 - Yoshio / @Yoshio_Online

10/06/2018 at 10:26AM

18
#4177 - Matthew Heaton / @MatthewHeaton17

06/08/2019 at 02:12AM

18
#4178 - steve bolo / @steve_bolo

08/04/2022 at 04:33PM

18
#4179 - Jacob Nellis / @jnellis3

08/23/2024 at 12:20AM

19
#4180 - 蔣昀劭 / @hjtiun852

09/01/2020 at 07:05AM

20
#4181 - Rahul Ravu / @rravu3

01/30/2015 at 04:40AM

20
#4182 - Peter Hajas / @peterhajas

05/24/2015 at 11:31PM

20
#4183 - Manoj Raja Rao / @manojrajarao

06/17/2015 at 11:14PM

20
#4184 - Sebastian Aburto / @saburto_m

10/01/2017 at 08:59PM

21
#4185 - hussein hammoud / @hussein28091366

03/25/2018 at 11:38AM

22
#4186 - 唯 / @alviezhang

05/19/2015 at 06:10AM

24
#4187 - Kyle Getson / @kylegetson

03/27/2015 at 02:46AM

24
#4188 - kijete3127 / @kijete3127

12/13/2020 at 02:10PM

25
#4189 - Axelrod Gunnarson / @AxelrodG

02/27/2015 at 06:11PM

25
#4190 - dest royer / @ddddestroyerrrr

05/03/2015 at 07:06PM

25
#4191 - Charles D / @charliechin

09/19/2017 at 11:27PM

28
#4192 - Bastien Granger / @BastienGrg

05/24/2018 at 04:16PM

30
#4193 - Magnus Pettersson / @Entropy_swe

09/16/2016 at 02:20PM

32
#4194 - Sohit Pal / @SPKB24

09/18/2018 at 12:40PM

33
#4195 - デンデン@オブジェクト指向を諦めたい / @MyRunGoRails

06/18/2020 at 05:16AM

37
#4196 - Morgan Waters / @morganwaters

05/25/2015 at 06:34AM

54
#4197 - 中嶋聖悟 / @Nzimac

11/13/2019 at 03:48AM

56
#4198 - rungobier / @rungobier

01/09/2015 at 03:43AM

64
#4199 - 박주영 / @xhgnVrQ6uUJOTnB

06/29/2018 at 08:01AM

66
#4200 - Theodore Lee / @theo825

01/06/2015 at 11:57PM