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
#1501 - Ilari Mäkelä / @ilarimkel

01/19/2015 at 07:57PM

8
#1502 - Cyrus / @Cyrus_00000

01/19/2015 at 08:21PM

8
#1503 - hih justinian iii / @justinian3

01/20/2015 at 02:35AM

8
#1504 - philomuzzi / @philomuzzi

01/20/2015 at 02:59AM

8
#1505 - ziizii / @ziizii

01/20/2015 at 11:25AM

8
#1506 - Romain Salles / @romain_salles

01/20/2015 at 01:08PM

8
#1507 - Thomas Larrieu / @t_larrieu

01/20/2015 at 01:09PM

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

01/20/2015 at 02:31PM

8
#1509 - hek / @hek

01/21/2015 at 07:12PM

8
#1510 - Angus Warren / @SuperJediWombat

01/22/2015 at 01:04PM

8
#1511 - air wick / @airwickc

01/22/2015 at 11:49PM

8
#1512 - Edmundo Perez / @ingedmundo

01/23/2015 at 12:22AM

8
#1513 - Marcelo Montu / @_mMontu_

01/23/2015 at 05:34PM

8
#1514 - D. Patrick Caldwell / @tncbbthositg

01/23/2015 at 09:57PM

8
#1515 - SilentFl / @Silent_Fl

01/25/2015 at 07:31AM

8
#1516 - Sid Kasivajhula / @CountVajhula

01/25/2015 at 09:02AM

8
#1517 - Bruno Pedro / @bpedro

01/26/2015 at 05:12PM

8
#1518 - Ben Taylor / @bentayloruk

01/26/2015 at 08:53PM

8
#1519 - Tuleism / @tuleism

01/27/2015 at 10:27AM

8
#1520 - Pedro Santos / @pedrosans

01/27/2015 at 06:38PM

8
#1521 - Thomas Feiler / @SirTibsTibsford

01/27/2015 at 09:45PM

8
#1522 - Linda Liu / @_lindaliu_

01/27/2015 at 11:28PM

8
#1523 - Roman Firt / @RomanFirt

01/28/2015 at 08:20PM

8
#1524 - Evan Relf / @evanrelf

01/29/2015 at 01:21AM

8
#1525 - ~Nicolas_Poulain / @nicolaspoulain

01/29/2015 at 08:45PM

8
#1526 - Loser Face / @heypetewhats

01/29/2015 at 09:45PM

8
#1527 - George / @dyreshark

01/30/2015 at 01:27AM

8
#1528 - Allen Li / @thenightawl

01/30/2015 at 06:46AM

8
#1529 - Gary Liddon / @gyratory

01/30/2015 at 08:54AM

8
#1530 - Nick James / @Verbitan

01/31/2015 at 02:51PM