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
#1351 - Marco / @Marco24456514

03/21/2020 at 11:19PM

7
#1352 - Oleg / @colega

03/22/2020 at 12:23PM

7
#1353 - Robberechts Arne / @ArneRobberechts

03/22/2020 at 02:49PM

7
#1354 - koyumeishi / @koyumeishi_

03/27/2020 at 04:35PM

7
#1355 - Rodrigo V. Lopes / @rodvlopes

03/30/2020 at 02:15PM

7
#1356 - Nick Lee / @TooManyNickLees

04/05/2020 at 01:11PM

7
#1357 - Skywalker 666 / @MemeMasterXXI

04/09/2020 at 07:36AM

7
#1358 - Moatvald / @moatvald

04/12/2020 at 04:46PM

7
#1359 - edvrds / @edvrds

04/13/2020 at 07:22PM

7
#1360 - せいほう / @FICSQF

04/22/2020 at 02:03AM

7
#1361 - AbnerZheng / @ZhengAbner

04/24/2020 at 05:58AM

7
#1362 - Sai Hemanth / @saihemanth9019

04/24/2020 at 11:59AM

7
#1363 - Atzz / @AtzzCokeK

04/25/2020 at 06:26AM

7
#1364 - cyndiii-development / @cyndiiidevelop1

04/25/2020 at 06:28AM

7
#1365 - {{ profile.name }} / @bytesonly

04/29/2020 at 08:03AM

7
#1366 - John Sumner / @rjsumner

04/29/2020 at 03:47PM

7
#1367 - Arthur Goodman / @ArthurGoodman3

04/29/2020 at 09:54PM

7
#1368 - Nick Garcia / @NicksIdeas

05/06/2020 at 03:04AM

7
#1369 - Anay Karnik / @anay_karnik

05/07/2020 at 03:07PM

7
#1370 - Dionysus / @user101user

05/07/2020 at 10:20PM

7
#1371 - Tim Smart / @tim_smart

05/08/2020 at 04:57AM

7
#1372 - Rafael Gonzaga / @_rafaelgss

05/08/2020 at 01:34PM

7
#1373 - Makoto Onohara / @MakotoOnohara

05/11/2020 at 03:45PM

7
#1374 - Matt DB / @MattDB12

05/11/2020 at 08:27PM

7
#1375 - River Jiang / @riverjiang

05/14/2020 at 01:55AM

7
#1376 - Kevin Keefe / @KevinKeefe5

05/14/2020 at 07:49AM

7
#1377 - Christophe Robillard / @krichtof

05/22/2020 at 01:53PM

7
#1378 - 于吉星 / @fishermryn

05/23/2020 at 11:57AM

7
#1379 - pady. / @hundertzwoelf_

05/26/2020 at 02:44PM

7
#1380 - Lucas_Elsen / @DuVrangrGata18

05/27/2020 at 05:44PM