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

4093 active golfers, 11086 entries

Leaderboard (lowest score wins):
7
#1231 - Jairo Suarez / @xyos

05/08/2019 at 07:42PM

7
#1232 - Paul Yates / @PYates77

05/10/2019 at 05:47PM

7
#1233 - Καράτε Μόνο / @karate_mono

05/15/2019 at 12:37PM

7
#1234 - Fiffy / @sr21486642

05/17/2019 at 07:41AM

7
#1235 - TheMagzuz / @DamMarkus

05/17/2019 at 04:24PM

7
#1236 - David McDonald / @dmcdona

05/19/2019 at 04:21AM

7
#1237 - Christian Nieves / @ctnieves_

05/20/2019 at 05:55AM

7
#1238 - Gar Morley / @garmorley

05/25/2019 at 09:37AM

7
#1239 - Seunghun Lee / @earlbread

05/28/2019 at 02:57PM

7
#1240 - throw away / @f44lyf

06/02/2019 at 01:18AM

7
#1241 - deurzen / @devrzen

06/06/2019 at 12:45PM

7
#1242 - Ben M / @Sweet_Scientist

06/07/2019 at 02:13AM

7
#1243 - Thomas Hickman / @thomaskhickman

06/08/2019 at 12:03PM

7
#1244 - Magnus Bjuvensjö / @mbjuvensjo

06/12/2019 at 10:47PM

7
#1245 - majo senf / @majo_senf

06/14/2019 at 09:08AM

7
#1246 - John Herman Schwit / @JohnHermanSchwi

06/23/2019 at 06:10PM

7
#1247 - cinder 🔥 / @cyndrdev

06/27/2019 at 05:44PM

7
#1248 - Dan Yeaw / @danyeaw

06/30/2019 at 01:19AM

7
#1249 - Philip / @vCoRezZ

06/30/2019 at 07:02PM

7
#1250 - Trevor Langston / @sunkenroad

07/03/2019 at 01:13AM

7
#1251 - Ola / @Ola73745831

07/05/2019 at 02:08PM

7
#1252 - Petru-Armand Bancila / @petruarmand

07/09/2019 at 07:19PM

7
#1253 - Артур Кашаев / @KashaevArthur

07/10/2019 at 08:45AM

7
#1254 - Nathan Knox / @the_nathan_knox

07/11/2019 at 05:08PM

7
#1255 - Tim / @BusingTim

07/14/2019 at 09:33AM

7
#1256 - Rasmus Öhman Bruno / @rasmohman

07/23/2019 at 11:58AM

7
#1257 - Himavanth Reddy / @Himavanth1909

07/29/2019 at 10:32AM

7
#1258 - Markus / @ARealAnnoyance

07/29/2019 at 12:06PM

7
#1259 - Peter Demin / @peterdemin

07/29/2019 at 12:35PM

7
#1260 - Viktor Fukala / @FukalaViktor

07/30/2019 at 01:25PM