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

3871 active golfers, 10444 entries

Leaderboard (lowest score wins):
7
#1381 - RockerZZY / @rocker_zzy

05/28/2020 at 09:47AM

7
#1382 - Valdimar / @genkobar

05/28/2020 at 10:09PM

7
#1383 - LCY / @Chooneh

06/02/2020 at 08:30AM

7
#1384 - 六弦 / @liuxian1990

06/06/2020 at 12:03PM

7
#1385 - Dirty Harry / @TateDirty

06/11/2020 at 08:16PM

7
#1386 - speisz / @speiszc

06/12/2020 at 10:50PM

7
#1387 - smlbrngr / @smlbrngr

06/15/2020 at 05:04PM

7
#1388 - Chris AtLee / @chrisatlee

06/16/2020 at 12:14AM

7
#1389 - Lakshitha Wijesinghe / @lakshithaww

06/21/2020 at 07:06AM

7
#1390 - mocihan / @mocihan

06/27/2020 at 06:59AM

7
#1391 - 大矢元海 / @008Genkai

06/28/2020 at 05:34PM

7
#1392 - Mitchell Horning / @HorningMitchell

07/03/2020 at 11:34PM

7
#1393 - Brennan Barker / @BrennanJBarker

07/04/2020 at 04:37PM

8
#1394 - James / @Dronak

12/09/2014 at 12:01AM

8
#1395 - Allen Toy / @allen_toy

12/09/2014 at 12:12AM

8
#1396 - Karun Ramakrishnan / @the_karun

12/09/2014 at 02:23AM

8
#1397 - Alex K / @alex_kononovich

12/09/2014 at 07:04AM

8
#1398 - Gammelin Guillaume / @ggammelin

12/09/2014 at 07:58AM

8
#1399 - Joel S. / @joelthelion

12/09/2014 at 08:01AM

8
#1400 - farseer / @FarseerSee2012

12/09/2014 at 08:13AM

8
#1401 - Josu Oyanguren / @josuoyanguren

12/09/2014 at 08:42AM

8
#1402 - Ram Tamtam / @ramtamtamtam

12/09/2014 at 08:49AM

8
#1403 - mnx / @mnxx

12/09/2014 at 09:00AM

8
#1404 - Eduardo / @earada

12/09/2014 at 10:08AM

8
#1405 - Pete Johns / @johnsyweb

12/09/2014 at 10:11AM

8
#1406 - kungfuchad / @kungfuchad

12/09/2014 at 06:22PM

8
#1407 - kobby / @_kafdot_

12/09/2014 at 09:11PM

8
#1408 - YNWP / @ynw_P

12/09/2014 at 09:58PM

8
#1409 - Scott Davis / @ScottAGRC

12/09/2014 at 10:10PM

8
#1410 - Ferran / @fompi

12/10/2014 at 03:16AM