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

3953 active golfers, 10705 entries

Leaderboard (lowest score wins):
8
#3001 - Saurav Ray / @sauravpray

07/28/2020 at 06:47PM

8
#3002 - Olle Wiklund / @Kabix

08/01/2020 at 07:14AM

8
#3003 - Coded / @coded_nz

08/03/2020 at 04:18AM

8
#3004 - GenericHardwareGamer / @GnrikHrdwrGamer

08/05/2020 at 11:19AM

8
#3005 - Vinay Sharma / @VinaySh63956554

08/08/2020 at 06:26PM

8
#3006 - David Martínez / @g0ddrinksjava

08/08/2020 at 07:34PM

8
#3007 - Du Phan / @fehiepsi

08/10/2020 at 05:32AM

8
#3008 - mindgitrwx / @mindgitrwx

08/10/2020 at 01:56PM

8
#3009 - Martin Kauppinen / @MartinKauppinen

08/15/2020 at 11:20AM

8
#3010 - Ravi S Sinha / @ambidextrousTx

08/17/2020 at 10:51PM

8
#3011 - Muhsin AbdulMohammed / @muhsin____

08/18/2020 at 03:35PM

8
#3012 - elroylee / @elroylee11

08/23/2020 at 12:08AM

8
#3013 - fenn.stefan@gmail.com / @FennStefan

08/25/2020 at 01:29PM

8
#3014 - Art / @Art80615229

08/27/2020 at 09:53PM

8
#3015 - Nauma A. / @nauma_a

08/31/2020 at 04:17AM

8
#3016 - Robert Verst / @r_verst

09/01/2020 at 02:00PM

8
#3017 - Luc Kien Hang / @luckienhang

09/04/2020 at 12:41AM

8
#3018 - JP / @JP16366170

09/08/2020 at 11:46AM

8
#3019 - Christian Mösl / @ChristianMoesl

09/11/2020 at 08:50PM

8
#3020 - Kurt Keller / @KurtKeller

09/16/2020 at 09:00PM

8
#3021 - will / @willpnw

09/25/2020 at 02:12AM

9
#3022 - Tibor Claassen / @codebeige

12/09/2014 at 05:26AM

9
#3023 - Kévin R / @shaiton_

12/11/2014 at 10:50AM

9
#3024 - Sandeep Kumar Gupta / @skgBanga

12/15/2014 at 04:53AM

9
#3025 - Yuval Goncz / @YGoncho

12/18/2014 at 04:16PM

9
#3026 - r. / @rmarvie

12/25/2014 at 08:30PM

9
#3027 - daltonridenhour / @daltonridenhour

12/27/2014 at 10:46PM

9
#3028 - Tamás Torba / @torbatamas

12/30/2014 at 01:53PM

9
#3029 - Fontana Lorenzo / @fntlnz

01/03/2015 at 01:15PM

9
#3030 - makohoek / @MattijsKorp

01/07/2015 at 12:21PM