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

4213 active golfers, 11494 entries

Leaderboard (lowest score wins):
10
#3811 - Ryan Bas / @ryanbas21

06/28/2018 at 02:46PM

10
#3812 - Kwak / @Kwak35380772

06/29/2018 at 07:51AM

10
#3813 - ¬¬¬ ¬¬¬ / @WLq3KGhxohrCPl1

07/09/2018 at 01:11AM

10
#3814 - Zack / @zmechua

07/26/2018 at 02:35AM

10
#3815 - Christoph Heim / @iLords

07/28/2018 at 10:44AM

10
#3816 - Jules RIGOMONT / @rigomontj

07/29/2018 at 08:17PM

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

08/16/2018 at 11:58AM

10
#3818 - Korgan / @Korgan36725554

08/25/2018 at 04:35PM

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

10/31/2018 at 04:19AM

10
#3820 - Di Peng / @DCodier

10/31/2018 at 05:16AM

10
#3821 - Why Am / @WhysDeCatOnFire

11/08/2018 at 02:39PM

10
#3822 - Tad McCorkle / @TAD897

11/09/2018 at 12:16AM

10
#3823 - Álvaro Melgosa / @AlvaroMlgs

11/17/2018 at 02:42PM

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

11/17/2018 at 07:35PM

10
#3825 - MEschenbacher / @eschenbacher_m

11/30/2018 at 08:21PM

10
#3826 - Oren Koriat / @KoriatOren

12/06/2018 at 03:46PM

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

12/20/2018 at 02:14PM

10
#3828 - xiong yuwu / @xiongyuwu

12/26/2018 at 01:33PM

10
#3829 - Dmatrix / @Dr_Dmatrix

01/11/2019 at 06:44AM

10
#3830 - YUNATO / @yunato525

02/01/2019 at 03:20PM

10
#3831 - Der Wucher / @derwucher

03/02/2019 at 05:59PM

10
#3832 - Arend Lagendijk / @arendlagendijk

03/03/2019 at 07:36PM

10
#3833 - TadikMaHladik / @TadikH

03/04/2019 at 11:34AM

10
#3834 - andrwyoung / @andrwyoung1

03/04/2019 at 07:20PM

10
#3835 - The Joe / @computerjoe708

03/17/2019 at 04:30PM

10
#3836 - EarthToAbigail / @EarthAbigail

04/02/2019 at 06:21AM

10
#3837 - Banner B. Schafer / @BannerBSchafer

04/08/2019 at 04:08AM

10
#3838 - ytrxc38754975 / @royaso

04/12/2019 at 06:51AM

10
#3839 - Emanuele Aliverti / @memeAliverti

04/23/2019 at 06:36PM

10
#3840 - Zac / @zac_r_

04/25/2019 at 02:03PM