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

4088 active golfers, 11073 entries

Leaderboard (lowest score wins):
8
#1981 - Fredrik liljedahl / @fliljeda

11/06/2015 at 05:31PM

8
#1982 - Yihang Ho / @yihang5

11/07/2015 at 05:12AM

8
#1983 - Nam Net / @tafopigibi

11/07/2015 at 07:38PM

8
#1984 - Marcin Cabaj / @marcincabaj

11/09/2015 at 12:28PM

8
#1985 - Robert Goeddel / @f0rdpr3fect

11/09/2015 at 10:11PM

8
#1986 - Puda / @Puda2sRachi

11/10/2015 at 04:30PM

8
#1987 - Aaron Mininger / @AMininger

11/10/2015 at 06:45PM

8
#1988 - dan sweeting / @itsjustcode

11/11/2015 at 11:33PM

8
#1989 - Aurélien Lair / @aurelien_lair

11/12/2015 at 10:20PM

8
#1990 - Tom Sisk / @TomSisk

11/13/2015 at 09:09AM

8
#1991 - Lev / @siuzda

11/15/2015 at 01:39PM

8
#1992 - Ismaël Mejía / @iemejia

11/15/2015 at 05:13PM

8
#1993 - territorialmale / @territorialmale

11/16/2015 at 09:19PM

8
#1994 - Phill / @PhillipHermans

11/17/2015 at 09:39PM

8
#1995 - Jesse Atkinson / @jsatk

11/18/2015 at 07:12PM

8
#1996 - Ryuichiro / @ryuichiro44

11/19/2015 at 03:03PM

8
#1997 - Jo / @jonearth42

11/19/2015 at 10:53PM

8
#1998 - Marian Theisen / @obesechinese

11/20/2015 at 09:50AM

8
#1999 - Tarik Koc / @tariktheturk

11/20/2015 at 11:55PM

8
#2000 - Stoyko Stanchev / @stoykostanchev

11/22/2015 at 04:36AM

8
#2001 - rantelo / @rantelo7

11/23/2015 at 07:36PM

8
#2002 - William Ott / @oddalot

11/25/2015 at 04:52AM

8
#2003 - Stefan Larsson / @Objektiv

11/25/2015 at 05:36PM

8
#2004 - Johannes K / @JohannesK9

11/27/2015 at 12:15AM

8
#2005 - Lajos Koszti / @Ajnasz

11/29/2015 at 03:00PM

8
#2006 - Jon / @jreimels

12/01/2015 at 09:08PM

8
#2007 - lorentrogers / @lorentrogers

12/02/2015 at 07:38PM

8
#2008 - adrien frediani / @fredianiadrien

12/05/2015 at 11:10PM

8
#2009 - Paul D. Kang / @pauldakang

12/08/2015 at 02:33AM

8
#2010 - Dontneedto Knowit / @DontneedtoK

12/08/2015 at 07:48PM