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

3903 active golfers, 10559 entries

Leaderboard (lowest score wins):
8
#2521 - Daniel Liu / @idanieliu

05/03/2018 at 05:04AM

8
#2522 - autological_being / @metaporias

05/03/2018 at 05:42PM

8
#2523 - Micah Halter / @mehalter

05/03/2018 at 07:14PM

8
#2524 - Walerian Sobczak / @walerian777

05/04/2018 at 10:14AM

8
#2525 - Cosmic Frog / @Cozmicfrog

05/04/2018 at 10:25AM

8
#2526 - Luke Lee / @luke0201

05/05/2018 at 08:24AM

8
#2527 - Bimal Gaudel / @BimalGaudel

05/05/2018 at 03:50PM

8
#2528 - frank p / @icedearth55

05/05/2018 at 06:27PM

8
#2529 - Quade Morrison / @quade_morrison

05/07/2018 at 12:12AM

8
#2530 - . / @ningOTI

05/07/2018 at 01:43AM

8
#2531 - MarinAkaFulk / @MarinAkaFulk

05/08/2018 at 08:44AM

8
#2532 - Jean-paul Barbier / @jpdobar

05/09/2018 at 03:16PM

8
#2533 - d8d90d / @d8d90d

05/09/2018 at 05:16PM

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

05/11/2018 at 12:15PM

8
#2535 - Niels Pedersen / @NielsLearnsPy

05/12/2018 at 07:03AM

8
#2536 - Pablo Orduna / @OrdunaPablo

05/12/2018 at 03:39PM

8
#2537 - Adomas Jatužis / @adomixaszvers

05/13/2018 at 08:04PM

8
#2538 - Jonathan Camilleri / @Too_Many_Taken

05/20/2018 at 01:02PM

8
#2539 - Chien-Wei Sun / @chienweisun

05/21/2018 at 07:45PM

8
#2540 - IHanafusa / @FuwattoFlower

05/23/2018 at 09:12PM

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

05/25/2018 at 07:34AM

8
#2542 - William Hamilton / @BobHamiltonijk

05/26/2018 at 03:14AM

8
#2543 - William I. Olojede / @williamolojede

05/27/2018 at 10:54AM

8
#2544 - r / @revanthedarth

05/28/2018 at 07:42PM

8
#2545 - Rahul Gupta 🎹 / @pezcoder

05/31/2018 at 08:27PM

8
#2546 - Leila Loezer / @leilaloezer

06/02/2018 at 05:47PM

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

06/04/2018 at 08:16AM

8
#2548 - Nougatine Naja / @NougatineNaja

06/04/2018 at 08:48PM

8
#2549 - nSinus-R / @nSinusR

06/06/2018 at 12:59PM

8
#2550 - Vimg / @Vimg10

06/06/2018 at 07:49PM