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

3905 active golfers, 10565 entries

Leaderboard (lowest score wins):
8
#1591 - dtennant / @dtennant

02/25/2015 at 06:45PM

8
#1592 - Mike McGowan / @mikemcgowan75

02/26/2015 at 07:36PM

8
#1593 - Jake Eaton / @Jake__Eaton

02/28/2015 at 07:02AM

8
#1594 - Nathan Bullock / @c1410a

02/28/2015 at 08:25AM

8
#1595 - Scott Hillman / @scott_hillman

02/28/2015 at 12:21PM

8
#1596 - Кисы / @ubermuschi

03/01/2015 at 01:09PM

8
#1597 - Qhuatre / @Qhuatre

03/01/2015 at 05:20PM

8
#1598 - nope / @nope_gknobup

03/01/2015 at 08:40PM

8
#1599 - Ben Plantinga / @benplantinga

03/02/2015 at 02:14AM

8
#1600 - muulwurf / @muulwurf

03/02/2015 at 07:48PM

8
#1601 - Matthew Bender / @iobender

03/02/2015 at 07:57PM

8
#1602 - Sanjeev Pandey / @therealyednap

03/02/2015 at 10:40PM

8
#1603 - David Foucher / @tyjak

03/03/2015 at 12:08AM

8
#1604 - Gideon VanRiette / @gidjv

03/03/2015 at 04:29AM

8
#1605 - Gowtham Madhava / @gowthamgowtham

03/03/2015 at 05:01PM

8
#1606 - Dolookmorelike / @Dolookmorelike

03/04/2015 at 03:53PM

8
#1607 - stb tra / @stbtra

03/04/2015 at 10:14PM

8
#1608 - Vim Viking / @vim_viking

03/05/2015 at 01:10AM

8
#1609 - Marcin Brański / @3h4xx

03/06/2015 at 03:08PM

8
#1610 - Dante Catalfamo / @DanteCatalfamo

03/06/2015 at 09:23PM

8
#1611 - Kiet Nguyen / @kietnguyen86

03/08/2015 at 01:50AM

8
#1612 - Ch Ri / @szirocco

03/09/2015 at 10:18AM

8
#1613 - Kariem Ali Elkoush / @kariemali

03/10/2015 at 07:48AM

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

03/12/2015 at 01:10AM

8
#1615 - spriggo / @spriggo

03/12/2015 at 07:05PM

8
#1616 - llhasa / @lllhasa

03/12/2015 at 10:08PM

8
#1617 - basilest / @basilest

03/13/2015 at 01:13PM

8
#1618 - Tommy Chanthaboune / @50thAndWirsing

03/13/2015 at 06:58PM

8
#1619 - Kalle Björklid / @KBjorklid

03/13/2015 at 07:47PM

8
#1620 - TheProgrammer971 / @tp971

03/13/2015 at 09:02PM