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

3562 active golfers, 9544 entries

Leaderboard (lowest score wins):
7
#931 - Adrian Englhardt / @_englhardt

07/05/2017 at 12:09PM

7
#932 - Cody Heimberger / @certifiedloud

07/08/2017 at 05:42AM

7
#933 - Михаил Добров / @mSuGfwFz2ZNvv5b

07/08/2017 at 09:33PM

7
#934 - Kevin Traver / @kevintraver

07/09/2017 at 12:13AM

7
#935 - Dan Simmons / @simmons_dan

07/13/2017 at 02:33PM

7
#936 - apartment1812 / @apartment18121

07/14/2017 at 12:45AM

7
#937 - Robin Ramael / @RobinRamael

07/14/2017 at 02:09PM

7
#938 - Amalie Stokholm / @amalie_stokholm

07/15/2017 at 07:38AM

7
#939 - FunkySayu / @FunkySayu

07/18/2017 at 05:25PM

7
#940 - Gabriel Siqueira / @Gabriel_HSiq

07/20/2017 at 05:20PM

7
#941 - huho / @huho_xu

07/26/2017 at 06:09PM

7
#942 - GeneralSunbear / @GeneralSunbear

07/29/2017 at 12:15AM

7
#943 - devoh / @devvohh

07/29/2017 at 07:24PM

7
#944 - Daniel Edgecombe / @swingingclown

07/31/2017 at 11:15AM

7
#945 - Sinthorion / @sinthorion

08/02/2017 at 01:52PM

7
#946 - Marc Hunter / @MrMarcHunter

08/05/2017 at 08:37PM

7
#947 - Lauri Himanen / @HimanenLauri

08/05/2017 at 08:39PM

7
#948 - Aki Morooka / @Aki12117528

08/05/2017 at 08:43PM

7
#949 - Conrad / @Conrad55084958

08/05/2017 at 10:13PM

7
#950 - Ky Statham / @ijustwannacode

08/10/2017 at 09:02PM

7
#951 - Sebastian Müller / @echsberde

08/10/2017 at 11:03PM

7
#952 - godot / @gclair80

08/13/2017 at 01:32PM

7
#953 - Floris van Liere / @FlorisvanLiere

08/15/2017 at 08:14PM

7
#954 - Sam / @samdnte

08/16/2017 at 10:35PM

7
#955 - Philippe Brouillard / @_kurowasan

08/16/2017 at 11:37PM

7
#956 - Terry Ding / @TerryDing77

08/22/2017 at 09:49PM

7
#957 - SirVimGolf / @SirVimGolf

08/23/2017 at 12:40PM

7
#958 - Stuart Freeman / @seriouslyuguys

08/23/2017 at 06:05PM

7
#959 - Cyrus Nikolaidis / @CyrusNikolaidis

08/23/2017 at 08:23PM

7
#960 - DJ Martin / @DeeJay_Wins

08/23/2017 at 09:34PM