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

3950 active golfers, 10694 entries

Leaderboard (lowest score wins):
8
#2971 - Jackie / @Jackie57887507

06/05/2020 at 03:18AM

8
#2972 - poki / @poki38

06/06/2020 at 12:33PM

8
#2973 - nico / @res_tantum

06/08/2020 at 09:53PM

8
#2974 - Romain / @djizeuscoco

06/11/2020 at 10:16AM

8
#2975 - candywrappercrane / @cndwrpprpprcrn

06/12/2020 at 12:32PM

8
#2976 - khedd / @sinan_khedd

06/14/2020 at 03:41PM

8
#2977 - hansim / @hanstartup

06/15/2020 at 04:44AM

8
#2978 - nihilistCookie / @NihilistCookie

06/15/2020 at 06:26AM

8
#2979 - Reynald Havard / @rey_ha

06/15/2020 at 11:36PM

8
#2980 - C++くん(元店長) / @_shop_one

06/16/2020 at 05:30AM

8
#2981 - dg_ / @l_o_s_o_s

06/16/2020 at 02:49PM

8
#2982 - Jacob Shomstein / @jshoms

06/18/2020 at 03:57AM

8
#2983 - Mruczek / @mruczek1337

06/20/2020 at 12:50AM

8
#2984 - Felix / @motorente

06/24/2020 at 01:44PM

8
#2985 - bichoverde / @bichoverde5

06/25/2020 at 04:52PM

8
#2986 - Pedgin / @pedg1n

06/30/2020 at 04:44AM

8
#2987 - Alexandre MERLIN / @AlxMerlin

07/02/2020 at 06:30PM

8
#2988 - Jan Sturm / @JanSturm77

07/02/2020 at 07:49PM

8
#2989 - jackmark / @jackmar14540583

07/10/2020 at 01:01PM

8
#2990 - Adrián Delgado / @Caritativito

07/12/2020 at 01:46AM

8
#2991 - Vital Wang / @wang_vital

07/12/2020 at 05:44PM

8
#2992 - Julien Duc / @jduc_0

07/17/2020 at 08:45AM

8
#2993 - vito / @vito49999722

07/19/2020 at 12:08PM

8
#2994 - Daniel Habib / @danielhvs

07/21/2020 at 02:39AM

8
#2995 - Ángel Durán / @AngeeelD

07/21/2020 at 03:53PM

8
#2996 - Saurabh / @Saurabh09299

07/22/2020 at 02:23PM

8
#2997 - Andy Yang / @yzwdroid

07/25/2020 at 07:41PM

8
#2998 - Norman Liu / @normanwliu

07/25/2020 at 11:28PM

8
#2999 - Saurav Ray / @sauravpray

07/28/2020 at 06:47PM

8
#3000 - Olle Wiklund / @Kabix

08/01/2020 at 07:14AM