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

4205 active golfers, 11473 entries

Leaderboard (lowest score wins):
7
#361 - Vimgolf Lucas / @vimgolf_lucas

07/25/2015 at 11:59PM

7
#362 - Sam Morrison / @smauel87

07/26/2015 at 10:33PM

7
#363 - Hunter Gatewood / @hcgatewood

07/28/2015 at 03:12AM

7
#364 - Toni Dezman / @CesarekToni

07/28/2015 at 06:06PM

7
#365 - americanarchist / @eli_riggs

07/28/2015 at 10:51PM

7
#366 - Shubham Sharma / @shubh1337

07/29/2015 at 06:57PM

7
#367 - Agnans / @agnans92

07/31/2015 at 03:52AM

7
#368 - William Burgo / @burgow

08/04/2015 at 07:43PM

7
#369 - Lukas Froehlich / @humpingcats

08/05/2015 at 07:44PM

7
#370 - voglster / @voglster

08/05/2015 at 10:00PM

7
#371 - David Montague / @sirlamps

08/07/2015 at 10:46PM

7
#372 - sabotage / @ay3uXCqqzZw8uvl

08/11/2015 at 05:54PM

7
#373 - Mike Wabst / @wabst

08/11/2015 at 08:52PM

7
#374 - Mikołaj Morzy / @MikolajMorzy

08/13/2015 at 08:55AM

7
#375 - Alykhan Kanji / @alykhank

08/14/2015 at 04:33AM

7
#376 - Gafton Paul / @Paul9222

08/19/2015 at 01:00AM

7
#377 - joinvimgolf / @joinvimgolf

08/20/2015 at 09:35PM

7
#378 - Dawid retkiewicz / @dawret

08/21/2015 at 10:27AM

7
#379 - JS / @jjohsan

08/22/2015 at 05:59PM

7
#380 - Dennis Burke / @ikirudennis

08/22/2015 at 10:41PM

7
#381 - Illuminati Tsaur / @IlluminatiTsaur

08/26/2015 at 01:40PM

7
#382 - Dan Moldovan / @Lenea92

08/27/2015 at 11:00AM

7
#383 - daniel olsson / @glajan

08/27/2015 at 04:57PM

7
#384 - Osleg aka Akira ^_^ / @4k1r4

08/28/2015 at 03:09AM

7
#385 - n / @d3m1gd

08/29/2015 at 02:00PM

7
#386 - T A / @SirAviles

08/29/2015 at 02:33PM

7
#387 - Sime Buljac / @sim_bul

08/31/2015 at 11:36AM

7
#388 - SundaraRaman / @digital_carver

08/31/2015 at 01:04PM

7
#389 - Aleksandr Block / @AleksandrBlock

08/31/2015 at 02:49PM

7
#390 - Mart T / @xtimmu

08/31/2015 at 06:53PM