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

3951 active golfers, 10698 entries

Leaderboard (lowest score wins):
8
#1651 - David Trinh / @dhtrinh02

03/17/2015 at 01:38AM

8
#1652 - Louis Caruana / @louiecaruana

03/17/2015 at 02:04AM

8
#1653 - Kaung Htet Zaw / @khzaw

03/17/2015 at 08:32AM

8
#1654 - James Reichley / @JimGDawg

03/19/2015 at 01:37AM

8
#1655 - Steven Schalhorn / @Unmensch

03/19/2015 at 04:06PM

8
#1656 - Georgi Georgiev / @GeorgievGeorgeS

03/19/2015 at 05:14PM

8
#1657 - Johan Adriaans / @JohanAdriaans

03/20/2015 at 10:01AM

8
#1658 - OneManNoDucks / @OneManNoDucks

03/21/2015 at 12:29PM

8
#1659 - Travis Barber / @tbarber350

03/22/2015 at 03:34PM

8
#1660 - Me Quemé / @MQMtumblr

03/22/2015 at 05:02PM

8
#1661 - Mickael Le Gal / @mickaellegal

03/22/2015 at 05:22PM

8
#1662 - イタシ / @wwitashi

03/23/2015 at 04:58PM

8
#1663 - Marek Wawrzos / @putisPenser

03/24/2015 at 08:09PM

8
#1664 - ɐʇnɥsɐpoʇ / @todashuta

03/25/2015 at 08:49AM

8
#1665 - Ian Egielski / @Ian_Egielski

03/25/2015 at 01:13PM

8
#1666 - Akash Bhardwaj / @akashbdj

03/25/2015 at 01:43PM

8
#1667 - Joonas Pihlajamaa / @jokkebk

03/25/2015 at 02:49PM

8
#1668 - Deni ForGames / @DeniDeniskin

03/25/2015 at 08:01PM

8
#1669 - Robert Dyer / @NavyJim13

03/26/2015 at 02:00AM

8
#1670 - Garrett Smith / @garrettwhsmith

03/28/2015 at 03:31AM

8
#1671 - pftb12345 / @pftb12345

03/28/2015 at 03:46AM

8
#1672 - LeoLuz / @leo_luz

03/29/2015 at 02:14AM

8
#1673 - josh mccall / @joshmccall

03/29/2015 at 05:07AM

8
#1674 - Robin Moussu / @robin_moussu

03/29/2015 at 09:39PM

8
#1675 - Igor Potceluev / @4eppelin

04/01/2015 at 10:32AM

8
#1676 - Hussain Shafeeu / @shxfee

04/02/2015 at 03:23AM

8
#1677 - Olivier Debon / @OlivierSwift

04/02/2015 at 02:14PM

8
#1678 - Benny Wong / @bdotdub

04/02/2015 at 05:32PM

8
#1679 - teeheewa / @Heewa

04/02/2015 at 06:04PM

8
#1680 - E Both / @enboth

04/02/2015 at 09:42PM