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):
8
#2641 - Jean-paul Barbier / @jpdobar

05/09/2018 at 03:16PM

8
#2642 - d8d90d / @d8d90d

05/09/2018 at 05:16PM

8
#2643 - Just...That / @I_am_JustThat

05/11/2018 at 12:15PM

8
#2644 - Niels Pedersen / @NielsLearnsPy

05/12/2018 at 07:03AM

8
#2645 - Pablo Orduna / @OrdunaPablo

05/12/2018 at 03:39PM

8
#2646 - Adomas Jatužis / @adomixaszvers

05/13/2018 at 08:04PM

8
#2647 - Jonathan Camilleri / @Too_Many_Taken

05/20/2018 at 01:02PM

8
#2648 - Chien-Wei Sun / @chienweisun

05/21/2018 at 07:45PM

8
#2649 - IHanafusa / @FuwattoFlower

05/23/2018 at 09:12PM

8
#2650 - Marchand Paul-Valère / @pvmarch

05/25/2018 at 07:34AM

8
#2651 - William Hamilton / @BobHamiltonijk

05/26/2018 at 03:14AM

8
#2652 - William I. Olojede / @williamolojede

05/27/2018 at 10:54AM

8
#2653 - Bilgisayar yazilimcisi Huseyin / @revanthedarth

05/28/2018 at 07:42PM

8
#2654 - Rahul Gupta 🎹 / @pezcoder

05/31/2018 at 08:27PM

8
#2655 - Leila Loezer / @leilaloezer

06/02/2018 at 05:47PM

8
#2656 - サブアカウント / @WeazulyS

06/04/2018 at 08:16AM

8
#2657 - Nougatine Naja / @NougatineNaja

06/04/2018 at 08:48PM

8
#2658 - nSinus-R / @nSinusR

06/06/2018 at 12:59PM

8
#2659 - Vimg / @Vimg10

06/06/2018 at 07:49PM

8
#2660 - Michael Dürrleder / @MichaelDrrleder

06/07/2018 at 09:04PM

8
#2661 - Dylan Nelson / @dlnnlsn

06/08/2018 at 02:24AM

8
#2662 - Mateen Ulhaq / @sicariusnoctis

06/10/2018 at 02:22AM

8
#2663 - qwertyu / @qwertyu78679259

06/12/2018 at 04:17AM

8
#2664 - Jack Phelan / @bytesandwich1

06/16/2018 at 05:51AM

8
#2665 - mass / @mass256

06/20/2018 at 08:39AM

8
#2666 - Norbert / @mullno

06/21/2018 at 08:03PM

8
#2667 - 권순재 / @FhOrZyV4MhUNXQx

06/23/2018 at 02:26AM

8
#2668 - Šimon Mandlík / @simon_mandlik

06/28/2018 at 10:04AM

8
#2669 - leesinplus(けいいち) / @leesin_plus

06/29/2018 at 07:52AM

8
#2670 - 이규승 / @IAHvPQrHVoh21zG

06/29/2018 at 08:30AM