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

3562 active golfers, 9544 entries

Leaderboard (lowest score wins):
7
#901 - Rodrigo Dorantes G. / @ruydg

05/22/2017 at 03:47PM

7
#902 - Anders Schramm / @AndersSchramm

05/22/2017 at 10:17PM

7
#903 - mesacul / @mesacul

05/23/2017 at 04:35AM

7
#904 - Melvin Cheung / @MelvinCheung

05/23/2017 at 04:06PM

7
#905 - Jye Sawtell-Rickson / @jsawtellrickson

05/31/2017 at 05:19AM

7
#906 - TongHyun Kim / @crowdy

05/31/2017 at 01:42PM

7
#907 - Florian Gauger / @FlorianGauger

06/02/2017 at 06:35PM

7
#908 - Lukas Tobler / @lut0bler

06/03/2017 at 07:20PM

7
#909 - ybw / @yossibenwolf

06/04/2017 at 09:52AM

7
#910 - ssh89 / @ssh89

06/04/2017 at 06:52PM

7
#911 - toddagibson / @toddagibson

06/06/2017 at 09:48PM

7
#912 - Damien Riquet / @driquet

06/08/2017 at 11:44AM

7
#913 - Azzteroweed / @AzzTeroweed

06/11/2017 at 10:09PM

7
#914 - Anthony George / @Xanuthatusu

06/14/2017 at 07:37PM

7
#915 - kanazawak / @_kanazawak

06/17/2017 at 04:39PM

7
#916 - Sebastián Etra / @EtraStyle

06/17/2017 at 06:29PM

7
#917 - Super VedoVatto / @supervedovatto

06/18/2017 at 12:58PM

7
#918 - Joel Meyer-Hamme / @JoelMeyerHamme

06/18/2017 at 02:06PM

7
#919 - Meriadec Pillet / @loomisBroom

06/18/2017 at 05:44PM

7
#920 - Kawin Nikomborirak / @KNikomborirak

06/21/2017 at 05:11AM

7
#921 - Christian Stammen / @c0smiq

06/21/2017 at 07:21AM

7
#922 - Jonathan Eidsness / @jonathaneidsnes

06/21/2017 at 06:54PM

7
#923 - Sean Wayman / @SeanInFrance

06/23/2017 at 09:25AM

7
#924 - Bennett Bernardoni / @BBernardoni

06/28/2017 at 04:43PM

7
#925 - Brendan G / @Brendan314

06/30/2017 at 03:39PM

7
#926 - 杨洋 / @176795444

07/01/2017 at 03:01AM

7
#927 - Jacob Buete / @JBuete

07/03/2017 at 12:42PM

7
#928 - John Marks / @__jmarks

07/03/2017 at 07:50PM

7
#929 - Fred Sladkey / @fsladkey

07/04/2017 at 06:38PM

7
#930 - Frank Malone / @FrankMa00268686

07/05/2017 at 11:12AM