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

4214 active golfers, 11496 entries

Leaderboard (lowest score wins):
7
#1441 - Jake Grossman / @PiranaLaugh

11/11/2020 at 06:17PM

7
#1442 - David Kutschke / @D4KU_

11/15/2020 at 11:07AM

7
#1443 - Yondonjamts Ganzorig / @yondonjamts_g

11/15/2020 at 11:15AM

7
#1444 - sho@RUNTEQ / @sheepflap

11/19/2020 at 01:32AM

7
#1445 - MrRubiksSC / @RubiksSc

11/25/2020 at 09:02PM

7
#1446 - Ihor / @Ihor96382508

11/29/2020 at 09:18AM

7
#1447 - f a / @5eraf

12/02/2020 at 04:33PM

7
#1448 - nd183 / @nd1832

12/03/2020 at 10:01AM

7
#1449 - — / @Cenarius

12/07/2020 at 02:32AM

7
#1450 - James Lowenthal / @JamesAnthonyLow

12/09/2020 at 01:52AM

7
#1451 - Ryan Way / @RyanWay16

12/09/2020 at 01:59PM

7
#1452 - le douche / @lddlc

12/15/2020 at 09:37PM

7
#1453 - Ian Burgan / @IanBurgan

12/15/2020 at 11:26PM

7
#1454 - pherapont / @pherapont1

12/18/2020 at 05:24AM

7
#1455 - rats is a cool name / @cd_rum

12/21/2020 at 08:15PM

7
#1456 - Pranshu Goyal / @PranshuGoyal

12/22/2020 at 11:16PM

7
#1457 - neonunux / @neonunux

12/23/2020 at 05:32PM

7
#1458 - Ray Dennis / @raysden

12/23/2020 at 10:08PM

7
#1459 - Brian :| / @Seeemplicity

12/25/2020 at 05:42AM

7
#1460 - kafang plays vimgolf / @KafangV

12/26/2020 at 11:31AM

7
#1461 - Kha Nguyen / @__ngtrongkha

12/29/2020 at 03:52PM

7
#1462 - Jung Yeon Park / @park_jungy

12/29/2020 at 05:53PM

7
#1463 - Mach / @back2mach

01/04/2021 at 12:27PM

7
#1464 - A A A / @37fatos

01/07/2021 at 01:50AM

7
#1465 - soppeldynga / @soppeldynga

01/09/2021 at 09:46PM

7
#1466 - John Watson / @JRWats0n

01/14/2021 at 06:43PM

7
#1467 - Sergei Blinov / @awnion

01/17/2021 at 03:50AM

7
#1468 - dsfdaaasdfasdfgsdfeasdf / @dsfdaaasdfasdf1

01/18/2021 at 01:00PM

7
#1469 - Andreas Siegrist / @andreaszwei

01/20/2021 at 02:45PM

7
#1470 - tylertucker202 / @tylertucker202

01/22/2021 at 01:52AM