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

4023 active golfers, 10910 entries

Leaderboard (lowest score wins):
7
#1441 - Samuel Lewi H / @slh_samuel

11/08/2020 at 04:16PM

7
#1442 - Jake Grossman / @PiranaLaugh

11/11/2020 at 06:17PM

7
#1443 - David Kutschke / @D4KU_

11/15/2020 at 11:07AM

7
#1444 - Yondonjamts / @yondonjamts_g

11/15/2020 at 11:15AM

7
#1445 - sho@RUNTEQ / @sheepflap

11/19/2020 at 01:32AM

7
#1446 - MrRubiksSC / @RubiksSc

11/25/2020 at 09:02PM

7
#1447 - Ihor / @Ihor96382508

11/29/2020 at 09:18AM

7
#1448 - f a / @5eraf

12/02/2020 at 04:33PM

8
#1449 - James / @Dronak

12/09/2014 at 12:01AM

8
#1450 - Allen Toy / @allen_toy

12/09/2014 at 12:12AM

8
#1451 - Karun Ramakrishnan / @the_karun

12/09/2014 at 02:23AM

8
#1452 - Alex K / @alex_kononovich

12/09/2014 at 07:04AM

8
#1453 - Gammelin Guillaume / @ggammelin

12/09/2014 at 07:58AM

8
#1454 - Joel S. / @joelthelion

12/09/2014 at 08:01AM

8
#1455 - farseer / @FarseerSee2012

12/09/2014 at 08:13AM

8
#1456 - Josu Oyanguren / @josuoyanguren

12/09/2014 at 08:42AM

8
#1457 - Ram Tamtam / @ramtamtamtam

12/09/2014 at 08:49AM

8
#1458 - mnx / @mnxx

12/09/2014 at 09:00AM

8
#1459 - Eduardo / @earada

12/09/2014 at 10:08AM

8
#1460 - Pete Johns / @johnsyweb

12/09/2014 at 10:11AM

8
#1461 - kungfuchad / @kungfuchad

12/09/2014 at 06:22PM

8
#1462 - kobby / @_kafdot_

12/09/2014 at 09:11PM

8
#1463 - YNWP / @ynw_P

12/09/2014 at 09:58PM

8
#1464 - Scott Davis / @ScottAGRC

12/09/2014 at 10:10PM

8
#1465 - Ferran / @fompi

12/10/2014 at 03:16AM

8
#1466 - Bambu / @bambumandinga

12/10/2014 at 03:30AM

8
#1467 - Eric Lawless / @eplawless

12/10/2014 at 07:41AM

8
#1468 - Kuba Borowski / @prajmus

12/10/2014 at 01:59PM

8
#1469 - Matthew / @mpruszczyk

12/10/2014 at 08:35PM

8
#1470 - Chris Brown / @engineercyb

12/10/2014 at 11:19PM