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

4157 active golfers, 11339 entries

Leaderboard (lowest score wins):
7
#1351 - Oleg / @colega

03/22/2020 at 12:23PM

7
#1352 - Robberechts Arne / @ArneRobberechts

03/22/2020 at 02:49PM

7
#1353 - koyumeishi / @koyumeishi_

03/27/2020 at 04:35PM

7
#1354 - Rodrigo V. Lopes / @rodvlopes

03/30/2020 at 02:15PM

7
#1355 - Nick Lee / @TooManyNickLees

04/05/2020 at 01:11PM

7
#1356 - Skywalker 666 / @MemeMasterXXI

04/09/2020 at 07:36AM

7
#1357 - Moatvald / @moatvald

04/12/2020 at 04:46PM

7
#1358 - edvrds / @edvrds

04/13/2020 at 07:22PM

7
#1359 - せいほう / @FICSQF

04/22/2020 at 02:03AM

7
#1360 - AbnerZheng / @ZhengAbner

04/24/2020 at 05:58AM

7
#1361 - Sai Hemanth / @saihemanth9019

04/24/2020 at 11:59AM

7
#1362 - Atzz / @AtzzCokeK

04/25/2020 at 06:26AM

7
#1363 - cyndiii-development / @cyndiiidevelop1

04/25/2020 at 06:28AM

7
#1364 - {{ profile.name }} / @bytesonly

04/29/2020 at 08:03AM

7
#1365 - John Sumner / @rjsumner

04/29/2020 at 03:47PM

7
#1366 - Arthur Goodman / @ArthurGoodman3

04/29/2020 at 09:54PM

7
#1367 - Nick Garcia / @NicksIdeas

05/06/2020 at 03:04AM

7
#1368 - Anay Karnik / @anay_karnik

05/07/2020 at 03:07PM

7
#1369 - Dionysus / @user101user

05/07/2020 at 10:20PM

7
#1370 - Tim Smart / @tim_smart

05/08/2020 at 04:57AM

7
#1371 - Rafael Gonzaga / @_rafaelgss

05/08/2020 at 01:34PM

7
#1372 - Makoto Onohara / @MakotoOnohara

05/11/2020 at 03:45PM

7
#1373 - Matt DB / @MattDB12

05/11/2020 at 08:27PM

7
#1374 - River Jiang / @riverjiang

05/14/2020 at 01:55AM

7
#1375 - Kevin Keefe / @KevinKeefe5

05/14/2020 at 07:49AM

7
#1376 - Christophe Robillard / @krichtof

05/22/2020 at 01:53PM

7
#1377 - 于吉星 / @fishermryn

05/23/2020 at 11:57AM

7
#1378 - pady. 🇪🇺 / @hundertzwoelf_

05/26/2020 at 02:44PM

7
#1379 - Lucas_Elsen / @DuVrangrGata18

05/27/2020 at 05:44PM

7
#1380 - RockerZZY / @rocker_zzy

05/28/2020 at 09:47AM