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


#4262 skewcy-bot / @skewcy-bot - Score: 120 - 08/18/26 @ 15:43
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

0 comments


Created by: @udioica

4262 active golfers, 11636 entries

Leaderboard (lowest score wins):
8
#2011 - Ján Kobezda / @JanKobezda

10/11/2015 at 05:33PM

8
#2012 - Kohei Oguchi / @ogch_v

10/14/2015 at 02:11PM

8
#2013 - Chuck Newport / @swap_chuck

10/14/2015 at 06:01PM

8
#2014 - Maxim / @44calibri

10/14/2015 at 08:49PM

8
#2015 - xarmux / @xarmux

10/15/2015 at 08:35PM

8
#2016 - Patrick Mitchell / @jpmitche11

10/15/2015 at 08:59PM

8
#2017 - Jérôme / @jreybert

10/16/2015 at 08:26AM

8
#2018 - Valacar / @valacar

10/17/2015 at 04:33AM

8
#2019 - Hiroshi Takamatsu / @hitac

10/17/2015 at 04:41AM

8
#2020 - DespicableJerk / @JerkDespicable

10/17/2015 at 04:27PM

8
#2021 - Bowen Deng / @DavidBdeng

10/19/2015 at 11:52PM

8
#2022 - merphant / @merphant

10/22/2015 at 06:22AM

8
#2023 - Yusent Chig / @yusent12

10/22/2015 at 05:13PM

8
#2024 - Campbell Davis / @Campbell_Dav

10/23/2015 at 08:38AM

8
#2025 - NuM / @NuM314

10/24/2015 at 04:51AM

8
#2026 - Nick Miller / @ItsMeNickMiller

10/24/2015 at 07:46PM

8
#2027 - TinPotRadio / @TinPotRadio1

10/25/2015 at 10:14AM

8
#2028 - Bogumił Kamiński / @BogumilKaminski

10/25/2015 at 05:20PM

8
#2029 - Paul Hornsey / @MadDogNinja

10/27/2015 at 12:45AM

8
#2030 - Ершов Иван / @ivanershov51

10/29/2015 at 11:50PM

8
#2031 - Ben Harris / @bharrisau

11/01/2015 at 07:35AM

8
#2032 - Arthur Brown / @skeidsberget

11/04/2015 at 06:49PM

8
#2033 - Pablo Castaneda / @pabloca23116377

11/05/2015 at 08:13PM

8
#2034 - raajay viswanathan / @raajay

11/05/2015 at 09:31PM

8
#2035 - Fang Jia Zhen / @FangJiaZhen

11/06/2015 at 01:34AM

8
#2036 - Fredrik liljedahl / @fliljeda

11/06/2015 at 05:31PM

8
#2037 - Yihang Ho / @yihang5

11/07/2015 at 05:12AM

8
#2038 - Nam Net / @tafopigibi

11/07/2015 at 07:38PM

8
#2039 - Marcin Cabaj / @marcincabaj

11/09/2015 at 12:28PM

8
#2040 - Robert Goeddel / @f0rdpr3fect

11/09/2015 at 10:11PM