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

4202 active golfers, 11464 entries

Leaderboard (lowest score wins):
8
#2521 - Lucas / @luc_4d

10/04/2017 at 05:11PM

8
#2522 - Jon Bakies / @jonbakies

10/05/2017 at 03:29PM

8
#2523 - Ari Kahn / @ari_e_kahn

10/05/2017 at 07:52PM

8
#2524 - Elton Kamami / @pixel_grid

10/07/2017 at 09:53PM

8
#2525 - romathonat / @romathonat

10/09/2017 at 01:10PM

8
#2526 - Stephen Betts / @stephenbetts

10/11/2017 at 02:15PM

8
#2527 - Ron Alexssen / @Ralexhere

10/13/2017 at 10:27PM

8
#2528 - Kevin / @PurpSchkurp

10/15/2017 at 10:44AM

8
#2529 - George Rabanca / @grabanca

10/15/2017 at 03:30PM

8
#2530 - Gregor / @Gregor07899789

10/15/2017 at 06:23PM

8
#2531 - rstcruzo / @rstcruzo

10/16/2017 at 02:27AM

8
#2532 - Paul Woestelandt / @pwoestelandt

10/18/2017 at 04:37PM

8
#2533 - Sam Coy / @samthecoy

10/25/2017 at 11:00AM

8
#2534 - MiloradKukic / @MiloradKukic

10/26/2017 at 11:56AM

8
#2535 - Sébastien Canart / @kokotchY

10/28/2017 at 08:38AM

8
#2536 - Thai Pangsakulyanont / @dtinth

10/29/2017 at 06:07PM

8
#2537 - chriscr / @chriscr_cr

10/29/2017 at 06:09PM

8
#2538 - popo5colo / @popo5colo1

10/31/2017 at 03:32AM

8
#2539 - BouboulouVimGolf / @BouboulouVG

10/31/2017 at 04:22PM

8
#2540 - ryuugekisya / @ryuugekisya

11/04/2017 at 02:50AM

8
#2541 - Danilo Đokić / @DaniloOkic

11/05/2017 at 03:04PM

8
#2542 - idle poze / @idlepoze

11/07/2017 at 08:16AM

8
#2543 - Philipp Aeschbach / @ihbmifqerg

11/08/2017 at 04:28PM

8
#2544 - 梅干 / @Umeboshi_9

11/10/2017 at 03:26PM

8
#2545 - Mike Harris / @MikeMJHarris

11/10/2017 at 07:27PM

8
#2546 - poster board / @mm_mut_mu11

11/11/2017 at 07:35PM

8
#2547 - Eric Johnson / @dej79

11/12/2017 at 04:37PM

8
#2548 - not a lot / @of_what1

11/15/2017 at 06:02AM

8
#2549 - Mihai / @mihaicristiant

11/16/2017 at 09:10PM

8
#2550 - Bradley M. Small / @BradleySmall

11/17/2017 at 06:38PM