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

4202 active golfers, 11464 entries

Leaderboard (lowest score wins):
8
#2581 - genoskill / @Genoskill

01/29/2018 at 02:18AM

8
#2582 - Yousef Mohamed / @MohamedYoyo94

01/30/2018 at 02:42PM

8
#2583 - CJ Avilla / @cjav_dev

01/31/2018 at 12:26AM

8
#2584 - John Addams / @JohnAddams19

02/01/2018 at 08:18PM

8
#2585 - Veljko Dimic / @v2dimic

02/06/2018 at 08:07PM

8
#2586 - Julien Leproust / @jleproust

02/07/2018 at 06:05PM

8
#2587 - Rajeev Ranjan Jha / @rajeevcreatorjh

02/10/2018 at 05:22PM

8
#2588 - phucvin / @phucvin

02/14/2018 at 03:53PM

8
#2589 - Diego Balseiro / @diegobalseiro

02/16/2018 at 07:28PM

8
#2590 - Alvaro / @VaroClemente

02/18/2018 at 10:06PM

8
#2591 - thoughts / @bonchodiaries

02/20/2018 at 06:44PM

8
#2592 - Tris-tan / @questionblob

02/21/2018 at 09:56PM

8
#2593 - Bart Reynolds / @bartums

02/27/2018 at 03:51AM

8
#2594 - chaz / @hf7y

02/27/2018 at 07:21AM

8
#2595 - mikelplhts / @mikelplhts

02/27/2018 at 12:17PM

8
#2596 - Aviv Es / @phistakis

03/04/2018 at 08:08AM

8
#2597 - Tim / @timothyscosta

03/07/2018 at 02:43PM

8
#2598 - slicklash / @slicklash

03/08/2018 at 08:12PM

8
#2599 - Matthew Barry / @komputerwiz

03/11/2018 at 05:38AM

8
#2600 - Sergio Semedi / @SergioSemedi

03/11/2018 at 02:10PM

8
#2601 - Patrick Haugh / @haughpj

03/12/2018 at 06:32PM

8
#2602 - Lisa Ugray / @lisa_ugray

03/13/2018 at 01:46PM

8
#2603 - Максим Андраманов / @max362075

03/17/2018 at 12:12PM

8
#2604 - Vim Golfer / @vimgolfing

03/18/2018 at 09:59PM

8
#2605 - Paul Page / @theRealPaulPage

03/19/2018 at 09:30PM

8
#2606 - 煎饼果子 / @melongirl_SH

03/20/2018 at 03:18PM

8
#2607 - Oleg Skillup / @skill_up

03/20/2018 at 07:17PM

8
#2608 - Paul Draghicescu / @pdragy

03/22/2018 at 05:45AM

8
#2609 - David Pimentel / @daveypimentel

03/22/2018 at 09:46PM

8
#2610 - Tim Boooo-ckley 👻 / @timbucki

03/23/2018 at 01:39AM