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

4028 active golfers, 10923 entries

Leaderboard (lowest score wins):
7
#1411 - Kleyton / @kleytonstn

08/29/2020 at 06:29PM

7
#1412 - Yasky / @Yaasky

09/01/2020 at 04:47PM

7
#1413 - abhijeet patil / @abhijeetptl5

09/02/2020 at 06:17PM

7
#1414 - AnotherHowie / @AnotherHowie

09/02/2020 at 10:58PM

7
#1415 - dezhonger / @dezhonger

09/03/2020 at 09:07PM

7
#1416 - Muffin / @Muffin91707986

09/05/2020 at 09:30AM

7
#1417 - akouryy / @akouryy1

09/05/2020 at 12:44PM

7
#1418 - denzinger / @HJDDenzinger

09/11/2020 at 07:53AM

7
#1419 - Mangum! / @sammagnum

09/11/2020 at 06:08PM

7
#1420 - 刘宏亮 / @CoyAkey

09/12/2020 at 08:01AM

7
#1421 - Piotr Kaznowski / @kaznowski

09/13/2020 at 08:07PM

7
#1422 - JBL / @jbl428

09/15/2020 at 12:56PM

7
#1423 - Kaustubh Murumkar / @k_austub_h

09/21/2020 at 02:34PM

7
#1424 - FunkyKoval / @FunkyKoval10

09/23/2020 at 06:48PM

7
#1425 - Sergey Yakovlev / @selfuryon

09/25/2020 at 10:22PM

7
#1426 - Alice / @Alice10204425

09/29/2020 at 10:05PM

7
#1427 - Michael Castelein / @ichael11

10/01/2020 at 01:26AM

7
#1428 - Adrien Lemaire ドリ / @Adrien_Lemaire_

10/04/2020 at 12:20PM

7
#1429 - MoreWillMusic / @morewillmusic

10/06/2020 at 03:44PM

7
#1430 - Ifeoluwa Lawal / @IfeLawl

10/06/2020 at 03:49PM

7
#1431 - Er St / @ErSt46286501

10/08/2020 at 08:50AM

7
#1432 - Michael Bui / @Miik4chu

10/13/2020 at 10:12AM

7
#1433 - Ivan Kwong / @IvanKwong5

10/14/2020 at 01:37PM

7
#1434 - Dmitry Antonyuk / @AntonyukDmitry

10/15/2020 at 04:12PM

7
#1435 - Nazrulla / @Nazrull37098421

10/18/2020 at 06:53PM

7
#1436 - Alice / @Alice92541388

10/19/2020 at 12:44AM

7
#1437 - Kilian / @Kilian63634409

10/27/2020 at 06:32PM

7
#1438 - Alon Samuel / @AlonSamuel1

11/01/2020 at 04:36PM

7
#1439 - cheronder / @cheronder1

11/04/2020 at 12:13PM

7
#1440 - Prabhat Ranjan / @prabhatr27

11/05/2020 at 05:27AM