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

4114 active golfers, 11141 entries

Leaderboard (lowest score wins):
10
#3721 - Max Horn / @maexlich

03/02/2018 at 10:48PM

10
#3722 - Andrew Thal / @athal7

03/23/2018 at 02:00AM

10
#3723 - matthew brett / @matthewbrett

03/24/2018 at 10:14AM

10
#3724 - golfal / @golfal2

05/13/2018 at 02:23AM

10
#3725 - Mayank Suman / @mayank_suman

05/30/2018 at 07:33AM

10
#3726 - Colin Hart / @ColinTheRobot

06/06/2018 at 05:59PM

10
#3727 - Kris Ezra / @kris_ezra

06/12/2018 at 06:35PM

10
#3728 - Ryan Bas / @ryanbas21

06/28/2018 at 02:46PM

10
#3729 - Kwak / @Kwak35380772

06/29/2018 at 07:51AM

10
#3730 - ¬¬¬ ¬¬¬ / @WLq3KGhxohrCPl1

07/09/2018 at 01:11AM

10
#3731 - Zack / @zmechua

07/26/2018 at 02:35AM

10
#3732 - Christoph Heim / @iLords

07/28/2018 at 10:44AM

10
#3733 - Jules RIGOMONT / @rigomontj

07/29/2018 at 08:17PM

10
#3734 - 无眠的夜狐狸 / @fox_ni

08/16/2018 at 11:58AM

10
#3735 - Korgan / @Korgan36725554

08/25/2018 at 04:35PM

10
#3736 - Ajedrecista_JP(外道) / @Ajedrecista_JP

10/31/2018 at 04:19AM

10
#3737 - Di Peng / @DCodier

10/31/2018 at 05:16AM

10
#3738 - Why Am / @WhysDeCatOnFire

11/08/2018 at 02:39PM

10
#3739 - Tad McCorkle / @TAD897

11/09/2018 at 12:16AM

10
#3740 - Álvaro Melgosa / @AlvaroMlgs

11/17/2018 at 02:42PM

10
#3741 - steve N ӾlvЮ / @xlvio

11/17/2018 at 07:35PM

10
#3742 - MEschenbacher / @eschenbacher_m

11/30/2018 at 08:21PM

10
#3743 - Oren Koriat / @KoriatOren

12/06/2018 at 03:46PM

10
#3744 - じーこ@目指せ筋肉エンジニア🐯 / @jiko797torayo

12/20/2018 at 02:14PM

10
#3745 - xiong yuwu / @xiongyuwu

12/26/2018 at 01:33PM

10
#3746 - Dmatrix / @Dr_Dmatrix

01/11/2019 at 06:44AM

10
#3747 - YUNATO / @yunato525

02/01/2019 at 03:20PM

10
#3748 - Der Wucher / @derwucher

03/02/2019 at 05:59PM

10
#3749 - Arend Lagendijk / @arendlagendijk

03/03/2019 at 07:36PM

10
#3750 - TadikMaHladik / @TadikH

03/04/2019 at 11:34AM