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

3905 active golfers, 10565 entries

Leaderboard (lowest score wins):
8
#1501 - Scotland Stephenson / @alsoscotland

01/13/2015 at 07:08PM

8
#1502 - Keith Mascarenhas / @keithxm23

01/14/2015 at 01:07PM

8
#1503 - Christian Mönnig / @ch_moennig

01/14/2015 at 01:15PM

8
#1504 - Steve Perkson / @stevePerkson

01/14/2015 at 07:04PM

8
#1505 - GrupoCITEC / @GrupoCITEC

01/15/2015 at 02:53AM

8
#1506 - Simon Mölzer / @h0wser

01/15/2015 at 02:28PM

8
#1507 - Andreas Møller / @cullophid

01/15/2015 at 05:03PM

8
#1508 - Aaron Whittington / @whittaaron

01/16/2015 at 12:42AM

8
#1509 - Carlos A Henríquez Q / @lagunex

01/16/2015 at 11:07AM

8
#1510 - papitoniño / @Anthony47470507

01/16/2015 at 03:08PM

8
#1511 - Matt Walsh / @mattwalsh

01/16/2015 at 10:49PM

8
#1512 - Christopher MCA / @christopherMCA

01/17/2015 at 06:49AM

8
#1513 - Dmitry V. Alexeev / @alexeevdv

01/17/2015 at 02:31PM

8
#1514 - Christian Leskowsky / @CLeskowsky

01/17/2015 at 05:53PM

8
#1515 - Xeno Daphron / @daphron

01/18/2015 at 02:24AM

8
#1516 - Jakub Troszok / @zosoooo

01/19/2015 at 08:01AM

8
#1517 - Daniel Lundin / @danielundin

01/19/2015 at 08:07AM

8
#1518 - Rathrio / @Rathrio

01/19/2015 at 08:52AM

8
#1519 - Orlov Sergey / @OrlovSA

01/19/2015 at 09:17AM

8
#1520 - Christian Prehl / @prehlDE

01/19/2015 at 10:15AM

8
#1521 - Moritz Schüpp / @moritzschuepp

01/19/2015 at 11:30AM

8
#1522 - buz / @buzbone

01/19/2015 at 03:06PM

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

01/19/2015 at 07:57PM

8
#1524 - Cyrus / @Cyrus_00000

01/19/2015 at 08:21PM

8
#1525 - hih justinian iii / @justinian3

01/20/2015 at 02:35AM

8
#1526 - philomuzzi / @philomuzzi

01/20/2015 at 02:59AM

8
#1527 - ziizii / @ziizii

01/20/2015 at 11:25AM

8
#1528 - Romain Salles / @romain_salles

01/20/2015 at 01:08PM

8
#1529 - Thomas Larrieu / @t_larrieu

01/20/2015 at 01:09PM

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

01/20/2015 at 02:31PM