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

4156 active golfers, 11331 entries

Leaderboard (lowest score wins):
7
#1411 - Yāsky / @Yaasky

09/01/2020 at 04:47PM

7
#1412 - abhijeet patil / @abhijeetptl5

09/02/2020 at 06:17PM

7
#1413 - AnotherHowie / @AnotherHowie

09/02/2020 at 10:58PM

7
#1414 - dezhonger / @dezhonger

09/03/2020 at 09:07PM

7
#1415 - Muffin / @Muffin91707986

09/05/2020 at 09:30AM

7
#1416 - akouryy / @akouryy1

09/05/2020 at 12:44PM

7
#1417 - denzinger / @HJDDenzinger

09/11/2020 at 07:53AM

7
#1418 - Mangum! / @sammagnum

09/11/2020 at 06:08PM

7
#1419 - 刘宏亮 / @AkeyCoy

09/12/2020 at 08:01AM

7
#1420 - Piotr Kaznowski / @kaznowski

09/13/2020 at 08:07PM

7
#1421 - JBL / @jbl428

09/15/2020 at 12:56PM

7
#1422 - Kaustubh Murumkar / @k_austub_h

09/21/2020 at 02:34PM

7
#1423 - FunkyKoval / @FunkyKoval10

09/23/2020 at 06:48PM

7
#1424 - Sergey Yakovlev / @selfuryon

09/25/2020 at 10:22PM

7
#1425 - Alice / @Alice10204425

09/29/2020 at 10:05PM

7
#1426 - Michael Castelein / @ichael11

10/01/2020 at 01:26AM

7
#1427 - Adrien Lemaire ドリ / @Adrien_Lemaire_

10/04/2020 at 12:20PM

7
#1428 - MoreWillMusic / @morewillmusic

10/06/2020 at 03:44PM

7
#1429 - Ifeoluwa Lawal / @IfeLawl

10/06/2020 at 03:49PM

7
#1430 - Er St / @ErSt46286501

10/08/2020 at 08:50AM

7
#1431 - Michael Bui / @Miik4chu

10/13/2020 at 10:12AM

7
#1432 - Ivan Kwong / @IvanKwong5

10/14/2020 at 01:37PM

7
#1433 - Dmitry Antonyuk / @dm_antonyuk

10/15/2020 at 04:12PM

7
#1434 - Nazrulla / @Nazrull37098421

10/18/2020 at 06:53PM

7
#1435 - Alice / @Alice92541388

10/19/2020 at 12:44AM

7
#1436 - Kilian / @Kilian63634409

10/27/2020 at 06:32PM

7
#1437 - Alon Samuel / @AlonSamuel1

11/01/2020 at 04:36PM

7
#1438 - cheronder / @cheronder1

11/04/2020 at 12:13PM

7
#1439 - Prabhat Ranjan / @prabhatr27

11/05/2020 at 05:27AM

7
#1440 - Samuel Lewi H / @slh_samuel

11/08/2020 at 04:16PM