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):
8
#1621 - Matt Walsh / @mattwalsh

01/16/2015 at 10:49PM

8
#1622 - Christopher MCA / @christopherMCA

01/17/2015 at 06:49AM

8
#1623 - Dmitry V. Alexeev / @alexeevdv

01/17/2015 at 02:31PM

8
#1624 - Christian Leskowsky / @CLeskowsky

01/17/2015 at 05:53PM

8
#1625 - Xeno Daphron / @daphron

01/18/2015 at 02:24AM

8
#1626 - Jakub Troszok / @zosoooo

01/19/2015 at 08:01AM

8
#1627 - Daniel Lundin / @danielundin

01/19/2015 at 08:07AM

8
#1628 - Rathrio / @Rathrio

01/19/2015 at 08:52AM

8
#1629 - Orlov Sergey / @OrlovSA

01/19/2015 at 09:17AM

8
#1630 - Christian Prehl / @prehlDE

01/19/2015 at 10:15AM

8
#1631 - Moritz Schüpp / @moritzschuepp

01/19/2015 at 11:30AM

8
#1632 - buz / @buzbone

01/19/2015 at 03:06PM

8
#1633 - Ilari Mäkelä / @ilarimkel

01/19/2015 at 07:57PM

8
#1634 - Cyrus / @Cyrus_00000

01/19/2015 at 08:21PM

8
#1635 - hih justinian iii / @justinian3

01/20/2015 at 02:35AM

8
#1636 - philomuzzi / @philomuzzi

01/20/2015 at 02:59AM

8
#1637 - ziizii / @ziizii

01/20/2015 at 11:25AM

8
#1638 - Romain Salles / @romain_salles

01/20/2015 at 01:08PM

8
#1639 - Thomas Larrieu / @t_larrieu

01/20/2015 at 01:09PM

8
#1640 - Иоаннъ / @Vaneskot

01/20/2015 at 02:31PM

8
#1641 - hek / @hek

01/21/2015 at 07:12PM

8
#1642 - SuperJediWombat / @SuperJediWombat

01/22/2015 at 01:04PM

8
#1643 - air wick / @airwickc

01/22/2015 at 11:49PM

8
#1644 - Edmundo Perez / @ingedmundo

01/23/2015 at 12:22AM

8
#1645 - Marcelo Montu / @_mMontu_

01/23/2015 at 05:34PM

8
#1646 - D. Patrick Caldwell / @tncbbthositg

01/23/2015 at 09:57PM

8
#1647 - SilentFl / @Silent_Fl

01/25/2015 at 07:31AM

8
#1648 - Sid Kasivajhula / @CountVajhula

01/25/2015 at 09:02AM

8
#1649 - Bruno Pedro / @bpedro

01/26/2015 at 05:12PM

8
#1650 - Ben Taylor / @bentayloruk

01/26/2015 at 08:53PM