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):
8
#1441 - Johnny Develop / @johnnydevelop

12/22/2014 at 06:31PM

8
#1442 - Leeward Bound / @leewardbound

12/24/2014 at 03:37AM

8
#1443 - allenxuyb / @allenxuyb

12/26/2014 at 02:45AM

8
#1444 - 曾鹏文 / @ZengPengWen

12/26/2014 at 02:52PM

8
#1445 - Toni Češarek / @AntonC13

12/26/2014 at 10:28PM

8
#1446 - Araka Bar / @ArakaBar

12/27/2014 at 01:32PM

8
#1447 - Paul / @paxlzi

12/28/2014 at 04:31PM

8
#1448 - Tact Overflow / @muppling

12/29/2014 at 09:15AM

8
#1449 - Michael LeCompte / @michaelslec

12/29/2014 at 09:20AM

8
#1450 - alex annan / @alexannan

12/29/2014 at 11:37AM

8
#1451 - Frostyfrog / @frostyfrog2

12/31/2014 at 12:17AM

8
#1452 - Filipe Almeida / @filipe_almeida

12/31/2014 at 01:12AM

8
#1453 - durcheinandr / @durcheinandr

12/31/2014 at 07:06PM

8
#1454 - Russell Ball / @rtball2

12/31/2014 at 07:39PM

8
#1455 - d1hotpep / @d1hotpep

12/31/2014 at 11:29PM

8
#1456 - John Bucephalus / @AaronHotz

01/01/2015 at 01:36PM

8
#1457 - kawas / @kawas44

01/01/2015 at 02:42PM

8
#1458 - Jakob / @jajob

01/02/2015 at 12:10PM

8
#1459 - Cnetwork / @WShuguang

01/02/2015 at 02:05PM

8
#1460 - Akshay Hegde / @ajh_17

01/03/2015 at 08:53AM

8
#1461 - Salleyron Julien / @juguul

01/04/2015 at 02:14PM

8
#1462 - Carlos López / @morrizon

01/04/2015 at 05:04PM

8
#1463 - See BEAMs through walls / @hauleth

01/04/2015 at 07:32PM

8
#1464 - Michael Aston / @pennyOsl

01/07/2015 at 08:53PM

8
#1465 - David Tenreiro / @AxDATF

01/08/2015 at 01:39AM

8
#1466 - Chris Fleming / @chrisfl

01/08/2015 at 11:00AM

8
#1467 - Tadeu Zagallo / @tadeuzagallo

01/08/2015 at 11:52AM

8
#1468 - David Wright / @David27Wright

01/08/2015 at 05:00PM

8
#1469 - David Rainsford / @davidrainsford

01/09/2015 at 12:44AM

8
#1470 - blamitter ✏️ / @blamitter

01/09/2015 at 07:31PM