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

3905 active golfers, 10565 entries

Leaderboard (lowest score wins):
8
#1981 - Ben Friedland / @bfriedland174

01/28/2016 at 07:33PM

8
#1982 - Ian Trophy / @prfrgg

01/29/2016 at 08:01PM

8
#1983 - Victor Gaudard / @gaudardv

02/02/2016 at 05:16PM

8
#1984 - Andre Callus / @AndreCallus

02/03/2016 at 05:34AM

8
#1985 - Durga Swaroop Perla / @durgaswaroop

02/03/2016 at 04:35PM

8
#1986 - Alpha Centauri B / @alphacentaurib

02/04/2016 at 05:58PM

8
#1987 - udreki / @udreki

02/06/2016 at 08:53PM

8
#1988 - Riz Joj / @rizjoj

02/06/2016 at 11:32PM

8
#1989 - Laurent Atlan / @laurentatlan1

02/08/2016 at 09:57PM

8
#1990 - GarrettPeterson / @GarrettPeterson

02/09/2016 at 08:05PM

8
#1991 - trbvn / @trbvntrbvn

02/10/2016 at 04:10PM

8
#1992 - James Burns / @James_Ian_Burns

02/11/2016 at 01:21PM

8
#1993 - Janine Cheng / @janineist

02/12/2016 at 01:07PM

8
#1994 - walter sullivan / @walters82208305

02/12/2016 at 02:29PM

8
#1995 - Raymond Cox / @RaymondCox

02/12/2016 at 10:34PM

8
#1996 - Colin Foster / @Poolshark049

02/12/2016 at 10:37PM

8
#1997 - Rubén Chavarría T. / @rchavarriat

02/15/2016 at 11:55AM

8
#1998 - Sebastian Pardo / @sebpardo

02/17/2016 at 10:40PM

8
#1999 - Maciej Panasiewicz / @Grunthor1

02/18/2016 at 10:48PM

8
#2000 - Michał Misiarek / @mmisiarek

02/19/2016 at 02:34PM

8
#2001 - Ian Clark / @grappigpanda

02/19/2016 at 08:53PM

8
#2002 - charlie garcia / @thecgarcia

02/19/2016 at 10:04PM

8
#2003 - Zach Bajaber / @zachariab

02/20/2016 at 05:21PM

8
#2004 - leroy / @leroypubel

02/21/2016 at 08:52AM

8
#2005 - Markus Bohl / @bohl_markus

02/23/2016 at 10:52AM

8
#2006 - Connor Freeman / @conrfrmn

02/24/2016 at 02:12AM

8
#2007 - Kevin Gisi / @cheerskevin

02/24/2016 at 08:18AM

8
#2008 - Antony Garand / @AntoGarand

02/24/2016 at 07:56PM

8
#2009 - Jan Bundesmann / @janbundesmann

03/02/2016 at 02:11PM

8
#2010 - Mister Knister / @vimgolf_ctrl_x

03/03/2016 at 07:03AM