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

3562 active golfers, 9544 entries

Leaderboard (lowest score wins):
7
#961 - nekorug😊🌼 / @nekorug

08/24/2017 at 12:14AM

7
#962 - Marcos de Oliveira / @MsOliveiraa

08/24/2017 at 02:16PM

7
#963 - Michael Prouty / @MProuts

08/24/2017 at 03:36PM

7
#964 - NOT Takinashi / @TaleLore

08/25/2017 at 05:18PM

7
#965 - Daniel Wang / @npbool

08/29/2017 at 11:58AM

7
#966 - Darren Weston / @dazWestonUK

08/29/2017 at 04:18PM

7
#967 - FYN / @FYN_YEAH

08/31/2017 at 10:25AM

7
#968 - FYN_NO / @fyn_no

08/31/2017 at 10:30AM

7
#969 - zava / @znl1087

09/03/2017 at 02:32PM

7
#970 - Zel / @Zel98836552

09/08/2017 at 04:34PM

7
#971 - Alejandro Catalina / @AleexCatalina

09/10/2017 at 06:00PM

7
#972 - Vim Golfer / @nvim_golfer

09/16/2017 at 10:06PM

7
#973 - elmoloves / @ElmoLovesSilly

09/19/2017 at 11:50PM

7
#974 - exsaber / @exsaber508

09/20/2017 at 11:13AM

7
#975 - Owen / @owengeorge_

09/20/2017 at 12:20PM

7
#976 - Vim Golf 2017 / @vim_golf_2017

09/23/2017 at 10:52PM

7
#977 - Karamfil / @lz1aai

09/24/2017 at 09:44PM

7
#978 - Cary Goltermann / @CaryGoltermann

09/24/2017 at 11:16PM

7
#979 - F / @gofilby

09/26/2017 at 06:01PM

7
#980 - Christian Bauer / @Christi55765900

09/29/2017 at 01:28PM

7
#981 - Jon Wålstedt / @jonwalstedt

09/30/2017 at 11:10PM

7
#982 - Tim Varley / @varleti

10/02/2017 at 05:46PM

7
#983 - Luis Rascão / @lrascao

10/02/2017 at 09:19PM

7
#984 - Michael Oberst / @MichaelOberst

10/02/2017 at 10:56PM

7
#985 - tanguyGerome / @TanguyGerome

10/03/2017 at 08:26AM

7
#986 - Chris Atanasian / @ChrisAtanasian

10/03/2017 at 10:07PM

7
#987 - Steven Ferrell / @CannyBand77

10/06/2017 at 01:31PM

7
#988 - Richard / @rpmerry

10/10/2017 at 11:35AM

7
#989 - mooniim / @mooniim2

10/12/2017 at 08:46PM

7
#990 - David Elkouss / @d_elkouss

10/15/2017 at 01:29PM