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

3950 active golfers, 10694 entries

Leaderboard (lowest score wins):
8
#2701 - ieranstoiranstyu32npoierasnt / @ieranstoiranst1

02/08/2019 at 07:00PM

8
#2702 - Ng Sek Long / @NgSekLong

02/09/2019 at 02:58PM

8
#2703 - Bumazhka / @Bumazhka

02/10/2019 at 03:43PM

8
#2704 - Christopher Weyand / @swordman378

02/11/2019 at 05:00PM

8
#2705 - Filipe Brandenburger / @filbranden

02/17/2019 at 09:39AM

8
#2706 - sloppypapi / @sloppypapi5

02/21/2019 at 05:57PM

8
#2707 - sisi100 / @s1si100

02/23/2019 at 12:41PM

8
#2708 - algebraic-geometric / @algebraicgeome1

02/24/2019 at 04:59PM

8
#2709 - sjcomp / @sjcomp

02/25/2019 at 08:57PM

8
#2710 - noisevoid / @noisevoid

02/26/2019 at 04:40PM

8
#2711 - əarth simulator / @eidoloncity

02/28/2019 at 03:54PM

8
#2712 - ahm4711 / @ahm4711

03/01/2019 at 07:31PM

8
#2713 - vince / @vincentvangott

03/03/2019 at 12:45PM

8
#2714 - JT-Development.com / @JT_Development

03/04/2019 at 08:54AM

8
#2715 - お-せ-よ- / @OhSayYo

03/05/2019 at 04:55AM

8
#2716 - hn9u / @hn9u

03/05/2019 at 03:05PM

8
#2717 - Groovy / @groovy9

03/06/2019 at 10:14PM

8
#2718 - Robert Orr / @orrrobert

03/11/2019 at 10:13PM

8
#2719 - OldBoy / @geirola

03/12/2019 at 07:13AM

8
#2720 - chenqiqi / @chenqiqi13

03/13/2019 at 05:27AM

8
#2721 - enji / @enji_ja

03/18/2019 at 04:48PM

8
#2722 - james_bunch / @james_bunch

03/19/2019 at 03:04AM

8
#2723 - Vimfiz / @vimfiz

03/25/2019 at 04:49PM

8
#2724 - Duke Du / @DukeDu2

03/27/2019 at 03:37AM

8
#2725 - 大木建人 / @2357gi

03/29/2019 at 06:10AM

8
#2726 - Antoine Gagelin / @AntoineGagelin

04/01/2019 at 10:37AM

8
#2727 - 김형창 / @uVmEMZsCgcYvqZi

04/04/2019 at 01:14AM

8
#2728 - wanghbxxxx / @wanghbxxxx

04/04/2019 at 07:40AM

8
#2729 - Guillaume / @WeshGuillaume

04/07/2019 at 10:13PM

8
#2730 - phoibos92@gmail.com / @phoibos92

04/10/2019 at 04:16PM