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

3357 active golfers, 8983 entries

Leaderboard (lowest score wins):
7
#91 - gmatroskin / @gmatroskin

01/20/2015 at 08:25AM

7
#92 - Mart Birnbaum / @grinningc

01/20/2015 at 12:33PM

7
#93 - Stan G / @stangoesagain

01/20/2015 at 04:38PM

7
#94 - John Diamond / @jcdmnd

01/20/2015 at 11:21PM

7
#95 - shotopanx / @shotopanx

01/21/2015 at 02:37AM

7
#96 - Coal / @Coal

01/21/2015 at 07:24AM

7
#97 - Harm te Hennepe / @HrmtH

01/22/2015 at 02:41PM

7
#98 - Gregory Newman / @bozoslivehere

01/22/2015 at 09:34PM

7
#99 - Korneliusz Caputa / @elkornel

01/22/2015 at 10:21PM

7
#100 - ben / @bpaqd

01/23/2015 at 03:33AM

7
#101 - Eric Potter / @pottereric

01/24/2015 at 02:53AM

7
#102 - (Emile (Swarts)) / @EmileSwarts

01/24/2015 at 09:20AM

7
#103 - Niels Kobschätzki / @niels_k

01/24/2015 at 11:05AM

7
#104 - Adam Stankiewicz / @sheerun

01/25/2015 at 06:24PM

7
#105 - Ricardo Lima / @ricponteslima

01/26/2015 at 02:57PM

7
#106 - Jason Zudell / @maneKozaroo

01/27/2015 at 08:32AM

7
#107 - Jake Eskel / @JakeEskel

01/27/2015 at 03:48PM

7
#108 - Tyler Holien / @tylerholien

01/27/2015 at 08:44PM

7
#109 - Charles-P Clermont / @cpclermont

01/28/2015 at 12:30PM

7
#110 - Michael Smith / @aquasineutral

01/28/2015 at 04:49PM

7
#111 - Jeenu V / @jeenuv

01/29/2015 at 03:09PM

7
#112 - Nolic / @cNolic

01/29/2015 at 08:58PM

7
#113 - Andrew Joe / @andrewajoe

02/01/2015 at 06:57AM

7
#114 - Ducky / @MegaDucky9000

02/02/2015 at 01:09PM

7
#115 - Matt Kula / @matt_kula

02/04/2015 at 01:04AM

7
#116 - Jeremy Banzhaf / @jeremybanzhaf

02/04/2015 at 12:29PM

7
#117 - yusukesasaki / @yysaki

02/04/2015 at 03:12PM

7
#118 - emacs / @emachnic

02/04/2015 at 08:47PM

7
#119 - Tzipan / @Tzipan

02/05/2015 at 12:07AM

7
#120 - Daniel V Stankevich / @standeo

02/05/2015 at 06:22AM