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

4214 active golfers, 11496 entries

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

02/08/2019 at 07:00PM

8
#2792 - Ng Sek Long / @NgSekLong

02/09/2019 at 02:58PM

8
#2793 - Bumazhka / @Bumazhka

02/10/2019 at 03:43PM

8
#2794 - Christopher Weyand / @swordman378

02/11/2019 at 05:00PM

8
#2795 - Filipe Brandenburger / @filbranden

02/17/2019 at 09:39AM

8
#2796 - sloppypapi / @sloppypapi5

02/21/2019 at 05:57PM

8
#2797 - sisi100 / @s1si100

02/23/2019 at 12:41PM

8
#2798 - algebraic-geometric / @algebraicgeome1

02/24/2019 at 04:59PM

8
#2799 - sjcomp / @sjcomp

02/25/2019 at 08:57PM

8
#2800 - gravestench / @noisevoid

02/26/2019 at 04:40PM

8
#2801 - əarth simulator / @eidoloncity

02/28/2019 at 03:54PM

8
#2802 - ahm4711 / @ahm4711

03/01/2019 at 07:31PM

8
#2803 - vince / @vincentvangott

03/03/2019 at 12:45PM

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

03/04/2019 at 08:54AM

8
#2805 - おせよ / @OhSayYo

03/05/2019 at 04:55AM

8
#2806 - hn9u / @hn9u

03/05/2019 at 03:05PM

8
#2807 - Groovy / @groovy9

03/06/2019 at 10:14PM

8
#2808 - Robert Orr / @orrrobert

03/11/2019 at 10:13PM

8
#2809 - OldBoy / @geirola

03/12/2019 at 07:13AM

8
#2810 - chenqiqi / @chenqiqi13

03/13/2019 at 05:27AM

8
#2811 - enji / @enji_ja

03/18/2019 at 04:48PM

8
#2812 - james_bunch / @james_bunch

03/19/2019 at 03:04AM

8
#2813 - Vimfiz / @vimfiz

03/25/2019 at 04:49PM

8
#2814 - Duke Du / @DukeDu2

03/27/2019 at 03:37AM

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

03/29/2019 at 06:10AM

8
#2816 - Antoine Gagelin / @AntoineGagelin

04/01/2019 at 10:37AM

8
#2817 - 김형창 / @uVmEMZsCgcYvqZi

04/04/2019 at 01:14AM

8
#2818 - wanghbxxxx / @wanghbxxxx

04/04/2019 at 07:40AM

8
#2819 - Guillaume / @WeshGuillaume

04/07/2019 at 10:13PM

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

04/10/2019 at 04:16PM