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

4212 active golfers, 11493 entries

Leaderboard (lowest score wins):
8
#3151 - justinhj / @justinhj

12/26/2020 at 05:56AM

8
#3152 - Jon Powers / @JonKPowers

12/27/2020 at 12:30PM

8
#3153 - 영훈 / @odjfnrtm

12/27/2020 at 11:37PM

8
#3154 - Zhenkai W. / @Zhenkai_W

12/31/2020 at 02:47AM

8
#3155 - Kapildev Neupane / @KapildevNeupane

01/01/2021 at 12:02PM

8
#3156 - Björn Struckmeier / @BjrnStruckmeie1

01/02/2021 at 02:14PM

8
#3157 - knobbelkesvlaai / @knobbelkesvlaai

01/13/2021 at 12:12PM

8
#3158 - 김범준 / @kmbmjn

01/13/2021 at 12:13PM

8
#3159 - yxke / @_yxke

01/16/2021 at 01:22AM

8
#3160 - BumfuzzleGames / @BumfuzzleGames

01/18/2021 at 02:54PM

8
#3161 - Horst / @Horst91706815

01/20/2021 at 01:51PM

8
#3162 - zapakh / @zapakh

01/21/2021 at 05:10AM

8
#3163 - 蔡徐坤真是爱吃屎 / @Hashub7

01/22/2021 at 05:39AM

8
#3164 - Caleb Biddulph / @BiddulphCaleb

01/27/2021 at 03:54AM

8
#3165 - Jianfeng / @Jianfen22425058

01/28/2021 at 07:08AM

8
#3166 - Duncan / @Duncan31503119

02/07/2021 at 02:17AM

8
#3167 - WladDalwM / @WladDalwM

03/04/2021 at 08:13PM

8
#3168 - pomélux / @pomelux

03/11/2021 at 08:28PM

8
#3169 - Michel Viktor / @tomkpz

07/26/2021 at 02:44PM

8
#3170 - mevmev / @mevmev8

09/15/2021 at 02:45PM

8
#3171 - Alessandro Caputo / @ACaputoMD

11/21/2021 at 03:09PM

8
#3172 - わたろ / @wat_aro

12/10/2021 at 09:40AM

8
#3173 - 時空裂縫 / @0xdcbf

12/28/2021 at 05:55AM

8
#3174 - D. 👋 / @DCT_cpp

02/09/2022 at 04:28PM

8
#3175 - naomi (forgetful functor) / @fixedpointfae

03/29/2022 at 02:29AM

8
#3176 - Mihaja R. / @rmihaja_

04/13/2022 at 02:21PM

8
#3177 - ._. / @Katharsic

04/25/2022 at 06:01AM

8
#3178 - Youssef Magdy / @youssef_magdy29

04/30/2022 at 11:00PM

8
#3179 - タク@Webエンジニア / @gakushi23

06/13/2022 at 11:36AM

8
#3180 - GG Gibson / @HogSoup2

08/27/2022 at 04:25AM