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

4028 active golfers, 10923 entries

Leaderboard (lowest score wins):
7
#1321 - 임덕윤 / @SnLHUF5ZYJXqI1m

12/24/2019 at 01:11PM

7
#1322 - zqi / @zq11110320

12/27/2019 at 06:10AM

7
#1323 - JimmyGymglish / @JGymglish

01/02/2020 at 10:48AM

7
#1324 - Victor Chen / @VictorC89422342

01/07/2020 at 09:50PM

7
#1325 - Wim Stockman / @StockmanWim

01/09/2020 at 12:59PM

7
#1326 - nicosierra / @nicosierra84

01/09/2020 at 09:48PM

7
#1327 - lev / @nouvelliu

01/13/2020 at 09:30AM

7
#1328 - Flowepmed S. Sirch / @iluvfugu

01/17/2020 at 04:58AM

7
#1329 - Jose Javier Gonzalez / @jjgort

01/18/2020 at 01:07AM

7
#1330 - Bashar Jaan Khan / @basharjaankhan

01/19/2020 at 09:15AM

7
#1331 - く / @noblack_nolife

01/21/2020 at 09:23AM

7
#1332 - Michael Meixner / @meixner62

01/22/2020 at 01:10PM

7
#1333 - Dmitry Link / @l1nkthon

01/23/2020 at 01:48AM

7
#1334 - li / @li94938987

01/24/2020 at 12:16PM

7
#1335 - Tefe / @tefetic

01/24/2020 at 06:35PM

7
#1336 - おねさわ / @yama846

02/02/2020 at 02:28PM

7
#1337 - Jean-Francois Parent / @hacker_pyrat

02/04/2020 at 12:05AM

7
#1338 - Michał / @MichalPiotrK

02/04/2020 at 02:03PM

7
#1339 - Kyle X. Clark / @KyXr_Clark

02/09/2020 at 03:30PM

7
#1340 - Ticktockrobotsnot99 / @akashrrao

02/19/2020 at 04:33AM

7
#1341 - howanto / @ho_wan_

02/19/2020 at 09:50PM

7
#1342 - Anthony BERNARD / @TweetTontony

02/20/2020 at 04:53PM

7
#1343 - Mushan Yang / @mushanyoung

02/24/2020 at 10:37PM

7
#1344 - Michael Bennett Cohn / @miconian

02/25/2020 at 05:42AM

7
#1345 - David Hume / @djh95

02/27/2020 at 12:47AM

7
#1346 - countime / @countime1

03/05/2020 at 06:09AM

7
#1347 - r4d1um / @r4d1um

03/11/2020 at 05:24PM

7
#1348 - Sean Dewar / @seandewar

03/13/2020 at 04:45PM

7
#1349 - 杜撰 / @NOrUixDzwW4BbCP

03/19/2020 at 11:58PM

7
#1350 - Nick Buser / @buser_nick

03/20/2020 at 02:59AM