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

3825 active golfers, 10310 entries

Leaderboard (lowest score wins):
8
#1591 - Kariem Ali Elkoush / @kariemali

03/10/2015 at 07:48AM

8
#1592 - Корнев Руслан / @woto7

03/12/2015 at 01:10AM

8
#1593 - spriggo / @spriggo

03/12/2015 at 07:05PM

8
#1594 - llhasa / @lllhasa

03/12/2015 at 10:08PM

8
#1595 - basilest / @basilest

03/13/2015 at 01:13PM

8
#1596 - Tommy Chanthaboune / @50thAndWirsing

03/13/2015 at 06:58PM

8
#1597 - Kalle Björklid / @KBjorklid

03/13/2015 at 07:47PM

8
#1598 - TheProgrammer971 / @tp971

03/13/2015 at 09:02PM

8
#1599 - BartJanssen / @BartJanssen

03/14/2015 at 11:18AM

8
#1600 - Zuzana Dostalova / @Jocinka

03/14/2015 at 12:35PM

8
#1601 - Szymon Przybył / @szymonprzybyl7

03/14/2015 at 04:44PM

8
#1602 - chrisheithoff / @chrisheithoff

03/14/2015 at 07:42PM

8
#1603 - Алексей Матюшкин / @mudasobwa

03/14/2015 at 08:28PM

8
#1604 - Swastik / @__swastik

03/15/2015 at 06:23AM

8
#1605 - nikita korotkih / @NikitaKorotkih

03/15/2015 at 11:20AM

8
#1606 - Will McClellan / @willmcc_

03/16/2015 at 03:09AM

8
#1607 - Krzysztof / @Krzysztof2K

03/16/2015 at 01:30PM

8
#1608 - Alexander Putilin / @SashaPutilin

03/16/2015 at 10:24PM

8
#1609 - David Trinh / @dhtrinh02

03/17/2015 at 01:38AM

8
#1610 - Louis Caruana / @louiecaruana

03/17/2015 at 02:04AM

8
#1611 - Kaung Htet Zaw / @khzaw

03/17/2015 at 08:32AM

8
#1612 - James Reichley / @JimGDawg

03/19/2015 at 01:37AM

8
#1613 - Steven Schalhorn / @Unmensch

03/19/2015 at 04:06PM

8
#1614 - Georgi Georgiev / @GeorgievGeorgeS

03/19/2015 at 05:14PM

8
#1615 - Johan Adriaans / @JohanAdriaans

03/20/2015 at 10:01AM

8
#1616 - OneManNoDucks / @OneManNoDucks

03/21/2015 at 12:29PM

8
#1617 - Travis Barber / @tbarber350

03/22/2015 at 03:34PM

8
#1618 - Me Quemé / @MQMtumblr

03/22/2015 at 05:02PM

8
#1619 - Mickael Le Gal / @mickaellegal

03/22/2015 at 05:22PM

8
#1620 - イタシ / @wwitashi

03/23/2015 at 04:58PM