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
#1051 - Simon Zeng / @KronicMan

02/27/2018 at 07:30PM

7
#1052 - LC / @leeren

02/28/2018 at 12:18PM

7
#1053 - Karel Vervaeke / @karel1980

03/01/2018 at 10:27AM

7
#1054 - Maxim Zalata / @zalatik

03/02/2018 at 08:52PM

7
#1055 - GreenPinguin / @GreenPinguin2

03/07/2018 at 04:20PM

7
#1056 - Jacky / @MrBearPan

03/10/2018 at 06:03AM

7
#1057 - knight / @ndknight

03/11/2018 at 08:16AM

7
#1058 - Steven Petsche / @StevenPetsche

03/11/2018 at 09:02AM

7
#1059 - Chris Sutton / @cs1379320

03/12/2018 at 12:35AM

7
#1060 - Thiago Araújo Silva / @thiagoaraujos

03/13/2018 at 04:38PM

7
#1061 - pyaillet 🤘 / @pyaillet

03/16/2018 at 09:46PM

7
#1062 - Channing Chen / @jslgycm

03/20/2018 at 01:54AM

7
#1063 - Skyler Soss / @Skyb0rg

03/27/2018 at 09:47PM

7
#1064 - towc / @MateiCopot

03/28/2018 at 06:19PM

7
#1065 - vimthrowaway / @vimgolf_throw

03/29/2018 at 07:11AM

7
#1066 - Vim Golf / @VimgolfVim

03/31/2018 at 04:24AM

7
#1067 - ewalk153 / @ewalk153

03/31/2018 at 11:29PM

7
#1068 - kashikasitaro / @kashikasita

04/01/2018 at 02:37AM

7
#1069 - ken / @mindnaked

04/04/2018 at 03:43PM

7
#1070 - Kazuo Hasegawa / @shermansweet

04/12/2018 at 11:34AM

7
#1071 - Mohideen Imran Khan / @miknotes

04/12/2018 at 12:49PM

7
#1072 - nomsayin / @nomsayin

04/15/2018 at 07:06PM

7
#1073 - Andrzej Wąsowski / @AndrzejWasowski

04/18/2018 at 08:44AM

7
#1074 - radrhin / @radrhin

04/18/2018 at 06:03PM

7
#1075 - platypusDancing / @platypusDancing

04/20/2018 at 07:40PM

7
#1076 - akccakcctw / @akccakcctw

04/26/2018 at 04:26PM

7
#1077 - Milan Ľudma / @turiec_

04/29/2018 at 09:16PM

7
#1078 - Gemille Ford / @gemilleford

04/30/2018 at 01:07AM

7
#1079 - Vladimir Volkov / @neitrin

05/02/2018 at 11:43AM

7
#1080 - mdgill / @mdgill

05/03/2018 at 02:39PM