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

3041 active golfers, 8112 entries

Leaderboard (lowest score wins):
7
#1 - Tim Chase / @gumnos

12/09/2014 at 09:17PM

7
#2 - Urtica dioica / @udioica

12/09/2014 at 09:28PM

7
#3 - Hans Liu / @zhansliu

12/09/2014 at 09:58PM

7
#4 - benekeusz / @benekeusz

12/10/2014 at 03:10AM

7
#5 - Kai Yuan / @kentyuan

12/10/2014 at 09:26AM

7
#6 - Bart / @oneofmanybarts

12/10/2014 at 09:53AM

7
#7 - Aidan Kane / @aidos

12/10/2014 at 02:21PM

7
#8 - John Braxler / @braxler

12/10/2014 at 02:34PM

7
#9 - Brandon Williams / @williamsbdev

12/10/2014 at 03:27PM

7
#10 - Daniel Wang / @danwang

12/10/2014 at 11:43PM

7
#11 - Petro Тrouq / @zulolosi

12/10/2014 at 11:48PM

7
#12 - Frederik Vosberg / @FrediVosberg

12/11/2014 at 02:22PM

7
#13 - Danilo / @dbrgn

12/12/2014 at 08:19AM

7
#14 - Marcin Radomski / @_dextero

12/12/2014 at 09:44AM

7
#15 - David Barker / @dashleybarker

12/12/2014 at 03:21PM

7
#16 - Rodolphe Marques / @rodmar_

12/12/2014 at 03:33PM

7
#17 - Jakub Horák / @kubahorak

12/12/2014 at 03:48PM

7
#18 - Raphael / @rnstlr

12/12/2014 at 04:06PM

7
#19 - jared swarts / @JaredSwarts

12/12/2014 at 10:30PM

7
#20 - Paweł Max K. / @ktorek

12/14/2014 at 04:59PM

7
#21 - Zapata / @Incredible_JFP

12/14/2014 at 05:09PM

7
#22 - Stefan Eng / @Wribbe

12/15/2014 at 10:27AM

7
#23 - Rajit Singh / @rajitbsingh

12/15/2014 at 03:45PM

7
#24 - Strabs / @artistavenue

12/16/2014 at 01:11PM

7
#25 - Kentaro Wakayama / @wakayamakentaro

12/16/2014 at 05:59PM

7
#26 - Alex Birdsall / @OilCanSamson

12/17/2014 at 03:18AM

7
#27 - Ed / @posva

12/17/2014 at 04:26PM

7
#28 - kelevra / @kelevra19951823

12/18/2014 at 07:03PM

7
#29 - Dane Summers / @dsummersl

12/19/2014 at 03:20PM

7
#30 - Matthew Sterritt / @GodJinrai

12/19/2014 at 06:08PM