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

3903 active golfers, 10559 entries

Leaderboard (lowest score wins):
8
#2551 - Michael Dürrleder / @MichaelDrrleder

06/07/2018 at 09:04PM

8
#2552 - Dylan Nelson / @dlnnlsn

06/08/2018 at 02:24AM

8
#2553 - Mateen Ulhaq / @sicariusnoctis

06/10/2018 at 02:22AM

8
#2554 - qwertyu / @qwertyu78679259

06/12/2018 at 04:17AM

8
#2555 - Jack Phelan / @bytesandwich1

06/16/2018 at 05:51AM

8
#2556 - mass / @mass256

06/20/2018 at 08:39AM

8
#2557 - Norbert / @mullno

06/21/2018 at 08:03PM

8
#2558 - 권순재 / @FhOrZyV4MhUNXQx

06/23/2018 at 02:26AM

8
#2559 - Šimon Mandlík / @simon_mandlik

06/28/2018 at 10:04AM

8
#2560 - leesinplus(けいいち) / @leesin_plus

06/29/2018 at 07:52AM

8
#2561 - 이규승 / @IAHvPQrHVoh21zG

06/29/2018 at 08:30AM

8
#2562 - sspan / @sspantz

06/30/2018 at 09:54AM

8
#2563 - Xxax / @Xxax

07/02/2018 at 11:14AM

8
#2564 - Tom ten Thij / @eco_coder

07/03/2018 at 08:33AM

8
#2565 - 赤佐田奈葉 / @akasatanaha_

07/05/2018 at 04:01AM

8
#2566 - xarfg / @xarphg

07/06/2018 at 09:24AM

8
#2567 - rhys ormond / @rhysormond

07/08/2018 at 07:22AM

8
#2568 - Torsten Hendrich / @TorstenHendrich

07/09/2018 at 01:07PM

8
#2569 - Yasu Flores / @YasuFlores

07/10/2018 at 04:11AM

8
#2570 - Francesco Sacchi / @depsir

07/14/2018 at 02:27PM

8
#2571 - qed / @qed13308565

07/24/2018 at 04:39PM

8
#2572 - Jakub Tesárek / @JakubTesarek

07/25/2018 at 07:33AM

8
#2573 - Jakub Jasiński / @jakub__jasinski

07/25/2018 at 06:17PM

8
#2574 - yqu212 / @yqu212

07/26/2018 at 01:50PM

8
#2575 - Paul Inc / @hiniol1982

07/27/2018 at 04:06PM

8
#2576 - Shea Munion / @sheamunion

07/27/2018 at 09:13PM

8
#2577 - fucus / @fishlovebanana

07/28/2018 at 09:47AM

8
#2578 - Ian Webster / @iwebst

07/28/2018 at 06:52PM

8
#2579 - Hunter Tidwell / @hunter2tidwell

08/01/2018 at 12:59AM

8
#2580 - Juan Pablo Sarmiento / @PabloSarmiento

08/01/2018 at 01:06AM