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
#871 - 唐偉 / @tangw

04/22/2017 at 01:12AM

7
#872 - Pat Haggerty / @haggertypat

04/23/2017 at 01:27PM

7
#873 - Sean / @seanmcclory

04/24/2017 at 09:56AM

7
#874 - Ionel Manolache / @namnoi38

04/25/2017 at 02:44PM

7
#875 - Anton Matveev / @aush_tx

04/27/2017 at 09:13AM

7
#876 - Mort Rainey / @arch_midnight

04/28/2017 at 04:12PM

7
#877 - Doug Chan / @Coufu

04/28/2017 at 04:16PM

7
#878 - dfleischman / @dfleischman

04/28/2017 at 10:09PM

7
#879 - Chris Robertson / @chrisxrobertson

04/30/2017 at 12:49PM

7
#880 - Alec Goebel / @bewarethegrue

05/01/2017 at 03:42PM

7
#881 - Paul Beaudoin / @nonword

05/01/2017 at 06:20PM

7
#882 - Acid One / @AcidOne2

05/02/2017 at 10:18AM

7
#883 - Allen | Wheels / @SRWheel5

05/02/2017 at 10:14PM

7
#884 - jayem / @not_even_lyin

05/04/2017 at 05:49AM

7
#885 - Ꮧᴁ¢ὄᏰ ᎶᏋ£ቌℳᏠN / @JacobGelbman

05/04/2017 at 08:25PM

7
#886 - Arnie Palmies / @ArnieViPalmies

05/05/2017 at 03:49PM

7
#887 - Fox Wilson / @FoxWilson42

05/06/2017 at 02:36AM

7
#888 - Samuel Damashek / @SamuelDamashek

05/06/2017 at 02:58AM

7
#889 - Sam Hammer / @samhammer325

05/06/2017 at 05:49AM

7
#890 - Clement Keirua / @clemkeirua

05/06/2017 at 01:19PM

7
#891 - Jenny Johnson / @Kippz07

05/06/2017 at 04:54PM

7
#892 - JerryLee / @varXinYuan

05/08/2017 at 10:04AM

7
#893 - Wang Wu / @rubepeg

05/11/2017 at 12:40PM

7
#894 - 丰璐琰 / @flydzt

05/12/2017 at 08:43AM

7
#895 - Jeff Kelly / @cheibriados

05/13/2017 at 07:41PM

7
#896 - ЯRicardo / @TresErresCo

05/16/2017 at 02:14AM

7
#897 - jakeroberts / @jakeroberts

05/16/2017 at 04:58AM

7
#898 - Jared Thomas / @jthomas285

05/16/2017 at 04:44PM

7
#899 - Ming Dai / @MingDai2

05/21/2017 at 06:13PM

7
#900 - ʀǟɦʊʟ ɮɦօʟǟ / @theRahulBhola

05/22/2017 at 05:16AM