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

3825 active golfers, 10310 entries

Leaderboard (lowest score wins):
7
#1291 - rapan931 / @rapan931

10/11/2019 at 12:09AM

7
#1292 - kkscr / @kkscr1

10/13/2019 at 02:25PM

7
#1293 - KlondikeBaer / @BaerKlondike

10/14/2019 at 09:08PM

7
#1294 - leo / @leo28356948

10/17/2019 at 11:54AM

7
#1295 - Tamás Kárándi / @tkarandi

10/19/2019 at 05:32PM

7
#1296 - Quentin Fox / @quentinbfox_

10/21/2019 at 01:54AM

7
#1297 - Ivan Volosyuk / @IvanVolosyuk

10/21/2019 at 08:28AM

7
#1298 - MasterFox / @MaestroZorro_

10/22/2019 at 01:11PM

7
#1299 - joenv / @joenv2

10/23/2019 at 10:51AM

7
#1300 - Jeremy Soller / @jeremy_soller

10/25/2019 at 01:24AM

7
#1301 - Dodge Coates / @coates_dodge

10/26/2019 at 05:13PM

7
#1302 - vicver09 / @vicver091

10/27/2019 at 02:15PM

7
#1303 - Gregory Furter / @gfurter

10/27/2019 at 07:10PM

7
#1304 - Keith Klassen / @Collegekid491

11/02/2019 at 10:03PM

7
#1305 - TimMcGuire / @mcguire

11/08/2019 at 02:27AM

7
#1306 - shoji541 / @shoji541

11/09/2019 at 11:39AM

7
#1307 - Daniel Klepacki / @daniel_klepacki

11/13/2019 at 07:08PM

7
#1308 - shota_ogswr / @shota_ogasawara

11/17/2019 at 12:30PM

7
#1309 - Magnus / @praktiskt

11/17/2019 at 03:35PM

7
#1310 - pysnow530 / @pysnow530

11/19/2019 at 05:33AM

7
#1311 - Mark / @markfilus

11/21/2019 at 05:52PM

7
#1312 - Alexandre / @Hikaru_

11/22/2019 at 03:03PM

7
#1313 - bassnecter / @lothedr

11/23/2019 at 03:34PM

7
#1314 - Sebastien Premont / @spremont

11/28/2019 at 01:29PM

7
#1315 - Hector Ricardo / @Hector_Ricardo3

11/30/2019 at 06:13PM

7
#1316 - Nicolas Pagny / @NicolasPagny

12/03/2019 at 03:55PM

7
#1317 - Jonathan Jeffrey / @projjects

12/05/2019 at 05:59AM

7
#1318 - Chris Dean / @ChrisDe62379742

12/14/2019 at 07:03AM

7
#1319 - Lion de Bell / @CLGBamboo

12/15/2019 at 07:40PM

7
#1320 - Coby Drexler / @CobyDrexler

12/17/2019 at 10:28PM