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
#3121 - The Valencian Dev / @thevalenciandev

10/12/2020 at 09:40AM

8
#3122 - Mark / @markbaraban

10/13/2020 at 08:09PM

8
#3123 - Jordan Martel / @martelosaurus

10/14/2020 at 04:12AM

8
#3124 - Leland Paul Kusmer / @lelandpaul

10/21/2020 at 02:38AM

8
#3125 - Ansel Bobrow / @garlicWharfRat

10/21/2020 at 04:07AM

8
#3126 - Henry MATHEISEN / @hmatheisen

10/22/2020 at 12:55PM

8
#3127 - wilsonept / @wilsonept1

10/25/2020 at 12:12AM

8
#3128 - MySelf / @okmslf

10/26/2020 at 04:45PM

8
#3129 - Josh Swift / @Swiftyfish14

10/28/2020 at 02:05PM

8
#3130 - Filipe πŸ’™ / @ABarroso

10/28/2020 at 07:04PM

8
#3131 - Rin UmU πŸ™πŸ¦Šβ›©οΈβ„οΈπŸŽƒπŸŽ†πŸŽ‡βœ¨πŸŒŒπŸŒƒ / @dareka826

10/31/2020 at 12:55AM

8
#3132 - quemeraisc / @quemeraisc

11/05/2020 at 10:59AM

8
#3133 - vimspam / @vimspam

11/09/2020 at 04:48AM

8
#3134 - Arryue / @Arryue2

11/10/2020 at 06:16PM

8
#3135 - MichaΕ‚ / @Micha46184564

11/11/2020 at 04:28PM

8
#3136 - squidz / @_squidz_

11/12/2020 at 05:40PM

8
#3137 - Sebastian W. / @Sebasti91439242

11/15/2020 at 09:21PM

8
#3138 - γͺんとγͺγι›γˆγŸγ„ζ°—εˆ† / @VpFvUt2dq2BLepg

11/19/2020 at 10:11AM

8
#3139 - Leander Hendrikx / @leanderhendrikx

11/22/2020 at 10:28AM

8
#3140 - hepebexè / @hepebexe

11/26/2020 at 05:46PM

8
#3141 - df_vimgolf / @DfVimgolf

11/30/2020 at 10:59AM

8
#3142 - Hugh / @haquaman

11/30/2020 at 07:33PM

8
#3143 - Shinjini Ghosh / @ShinjiniGhosh00

12/03/2020 at 12:46AM

8
#3144 - Alex Watson / @AlexDewiWatson

12/03/2020 at 10:09AM

8
#3145 - roudens / @roudens2

12/04/2020 at 06:15AM

8
#3146 - Neverlandrunner / @neverlandrunner

12/05/2020 at 02:36PM

8
#3147 - Paul Dugdale / @pdug123

12/08/2020 at 09:17PM

8
#3148 - Bharath / @Bharath15952517

12/13/2020 at 07:33AM

8
#3149 - Nedko Nedkov / @NedkoNedkov6

12/15/2020 at 12:02PM

8
#3150 - John Doe / @JohnDoe75830353

12/21/2020 at 11:49PM