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

4181 active golfers, 11417 entries

Leaderboard (lowest score wins):
8
#1981 - Svenni Dal / @svennidal

09/30/2015 at 04:08PM

8
#1982 - bryn edwards / @edwards_bryn

10/02/2015 at 08:27AM

8
#1983 - Samuli Raivio / @bqqbarbhg

10/02/2015 at 01:52PM

8
#1984 - Julian Andrews / @NoLemurs

10/03/2015 at 04:30AM

8
#1985 - jan muha / @h4ct1c

10/03/2015 at 06:01PM

8
#1986 - Mark Clay / @dxftfdlz

10/03/2015 at 11:42PM

8
#1987 - Wesley GOI / @etheleonus

10/05/2015 at 03:22AM

8
#1988 - Marcus Buffett / @MarcusBuffett

10/05/2015 at 03:49AM

8
#1989 - ggdGiBork:3^[:wq / @CopperBadger

10/06/2015 at 12:43AM

8
#1990 - Matt Michnal / @mgm702

10/07/2015 at 04:50AM

8
#1991 - ren / @wxoc

10/07/2015 at 08:18PM

8
#1992 - Jack Z / @itszhou

10/08/2015 at 02:58PM

8
#1993 - Kalle Aaltonen / @kalleaaltonen

10/09/2015 at 02:32PM

8
#1994 - Ján Kobezda / @JanKobezda

10/11/2015 at 05:33PM

8
#1995 - Kohei Oguchi / @ogch_v

10/14/2015 at 02:11PM

8
#1996 - Chuck Newport / @swap_chuck

10/14/2015 at 06:01PM

8
#1997 - Maxim / @44calibri

10/14/2015 at 08:49PM

8
#1998 - xarmux / @xarmux

10/15/2015 at 08:35PM

8
#1999 - Patrick Mitchell / @jpmitche11

10/15/2015 at 08:59PM

8
#2000 - Jérôme / @jreybert

10/16/2015 at 08:26AM

8
#2001 - Valacar / @valacar

10/17/2015 at 04:33AM

8
#2002 - Hiroshi Takamatsu / @hitac

10/17/2015 at 04:41AM

8
#2003 - DespicableJerk / @JerkDespicable

10/17/2015 at 04:27PM

8
#2004 - Bowen Deng / @DavidBdeng

10/19/2015 at 11:52PM

8
#2005 - merphant / @merphant

10/22/2015 at 06:22AM

8
#2006 - Yusent Chig / @yusent12

10/22/2015 at 05:13PM

8
#2007 - Campbell Davis / @Campbell_Dav

10/23/2015 at 08:38AM

8
#2008 - NuM / @NuM314

10/24/2015 at 04:51AM

8
#2009 - Nick Miller / @ItsMeNickMiller

10/24/2015 at 07:46PM

8
#2010 - TinPotRadio / @TinPotRadio1

10/25/2015 at 10:14AM