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

4205 active golfers, 11473 entries

Leaderboard (lowest score wins):
7
#1171 - robinro / @robinro

11/22/2018 at 08:43PM

7
#1172 - Michael Lemur / @mlemur123

11/23/2018 at 01:07PM

7
#1173 - Jonas Weber / @thriqon

11/23/2018 at 09:41PM

7
#1174 - Jonathan Cabezas / @John_Harkan

11/26/2018 at 06:16PM

7
#1175 - Performa / @performa6400

11/27/2018 at 01:40PM

7
#1176 - unclewangshushu / @shuwushu

11/29/2018 at 12:27PM

7
#1177 - Michael Mangialardi / @michaelmangial1

11/29/2018 at 08:01PM

7
#1178 - Maas Lalani / @maaslalani

12/02/2018 at 11:48PM

7
#1179 - Paarth Madan / @paarthmadan_

12/05/2018 at 06:06PM

7
#1180 - Artur Mróz / @MrozArtur

12/06/2018 at 09:44AM

7
#1181 - diwa / @Di_nate_

12/06/2018 at 11:09AM

7
#1182 - Anant Mishra / @anantanni22

12/08/2018 at 04:00PM

7
#1183 - beew71493 / @beew71493

12/16/2018 at 05:11PM

7
#1184 - guxbug / @guxbug1

12/20/2018 at 02:20AM

7
#1185 - Ackman Syntax Error / @AckmanSux

12/22/2018 at 12:59AM

7
#1186 - xwlearn / @ixw1991

12/26/2018 at 03:33PM

7
#1187 -  Martijn Engler / @MartijnEngler

12/30/2018 at 06:55PM

7
#1188 - Prem Oza / @OzaPrem

01/03/2019 at 12:48PM

7
#1189 - Lorenzo Swank / @lswank

01/06/2019 at 04:50PM

7
#1190 - king of cool / @fyces

01/17/2019 at 08:53AM

7
#1191 - Mario Olofo / @mario_olofo

01/19/2019 at 02:39AM

7
#1192 - Stefano Bettani / @StefanoBettani

01/19/2019 at 03:26PM

7
#1193 - lofoneax / @lofoneax

01/23/2019 at 06:04AM

7
#1194 - Eric Klawitter / @eric_klaw

01/27/2019 at 12:51AM

7
#1195 - bajidu / @bajidu

01/27/2019 at 12:53AM

7
#1196 - Tinko Minko / @tandikula

01/29/2019 at 07:14PM

7
#1197 - Kelsey Ando / @d_chan42

01/31/2019 at 09:37PM

7
#1198 - Fongxuan / @FongX_L

02/15/2019 at 04:54PM

7
#1199 - XenoRiS / @XenoRiS1

02/16/2019 at 04:22PM

7
#1200 - Sam Miller / @sam_miller93

02/18/2019 at 11:50AM