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

3903 active golfers, 10559 entries

Leaderboard (lowest score wins):
8
#2431 - chriscr / @chriscr_cr

10/29/2017 at 06:09PM

8
#2432 - popo5colo / @popo5colo1

10/31/2017 at 03:32AM

8
#2433 - BouboulouVimGolf / @BouboulouVG

10/31/2017 at 04:22PM

8
#2434 - ryuugekisya / @ryuugekisya

11/04/2017 at 02:50AM

8
#2435 - Danilo Đokić / @DaniloOkic

11/05/2017 at 03:04PM

8
#2436 - idle poze / @idlepoze

11/07/2017 at 08:16AM

8
#2437 - Philipp Aeschbach / @ihbmifqerg

11/08/2017 at 04:28PM

8
#2438 - 梅干 / @Umeboshi_9

11/10/2017 at 03:26PM

8
#2439 - Mike Harris / @MikeMJHarris

11/10/2017 at 07:27PM

8
#2440 - poster board / @mm_mut_mu11

11/11/2017 at 07:35PM

8
#2441 - Eric Johnson / @dej79

11/12/2017 at 04:37PM

8
#2442 - not a lot / @of_what1

11/15/2017 at 06:02AM

8
#2443 - Mihai / @mihaicristiant

11/16/2017 at 09:10PM

8
#2444 - Bradley M. Small / @BradleySmall

11/17/2017 at 06:38PM

8
#2445 - šh!ßh!dø / @shishikatsu

11/18/2017 at 03:01PM

8
#2446 - 萩原 / @thunderbird258

11/18/2017 at 03:10PM

8
#2447 - daikiOka / @OdsOka

11/18/2017 at 03:17PM

8
#2448 - Richard Zou / @zou3519

11/19/2017 at 10:25PM

8
#2449 - QingyuZhao / @zhao_qingyu

11/21/2017 at 08:39AM

8
#2450 - Garry / @Kaolbrec

11/21/2017 at 11:28AM

8
#2451 - George Angelopoulos / @g_usermod

11/22/2017 at 01:08PM

8
#2452 - shamibys / @shamibys

11/24/2017 at 09:12AM

8
#2453 - Kenan Diab / @kenandiab

11/24/2017 at 06:41PM

8
#2454 - macmental / @macmental

11/26/2017 at 07:47PM

8
#2455 - BareTull / @BareTull3

11/26/2017 at 09:16PM

8
#2456 - Bart Kleijngeld / @BartKleijngeld

11/28/2017 at 09:10PM

8
#2457 - Kerson Hsiao / @KersonHsiao

12/07/2017 at 06:32AM

8
#2458 - Joachim Wedin / @joachim_wedin

12/08/2017 at 07:20AM

8
#2459 - Михаил Сурин / @realssmike

12/16/2017 at 10:40PM

8
#2460 - gink / @anagiwa

12/19/2017 at 04:30AM