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

3871 active golfers, 10444 entries

Leaderboard (lowest score wins):
8
#1861 - Mike Grimes / @magrimes

09/28/2015 at 10:12PM

8
#1862 - DavidF_BE / @DavidF_BE

09/30/2015 at 09:16AM

8
#1863 - Andrey / @androzhk

09/30/2015 at 02:41PM

8
#1864 - Svenni Dal / @svennidal

09/30/2015 at 04:08PM

8
#1865 - bryn edwards / @edwards_bryn

10/02/2015 at 08:27AM

8
#1866 - Samuli Raivio / @bqqbarbhg

10/02/2015 at 01:52PM

8
#1867 - Julian Andrews / @NoLemurs

10/03/2015 at 04:30AM

8
#1868 - jan muha / @h4ct1c

10/03/2015 at 06:01PM

8
#1869 - Mark Clay / @dxftfdlz

10/03/2015 at 11:42PM

8
#1870 - Wesley GOI / @etheleonus

10/05/2015 at 03:22AM

8
#1871 - Marcus Buffett / @MarcusBuffett

10/05/2015 at 03:49AM

8
#1872 - ggdGiBork:3^[:wq / @CopperBadger

10/06/2015 at 12:43AM

8
#1873 - Matt Michnal / @mgm702

10/07/2015 at 04:50AM

8
#1874 - ren / @wxoc

10/07/2015 at 08:18PM

8
#1875 - Jack Z / @itszhou

10/08/2015 at 02:58PM

8
#1876 - Kalle Aaltonen / @kalleaaltonen

10/09/2015 at 02:32PM

8
#1877 - Ján Kobezda / @JanKobezda

10/11/2015 at 05:33PM

8
#1878 - Kohei Oguchi / @ogch_v

10/14/2015 at 02:11PM

8
#1879 - Chuck Newport / @swap_chuck

10/14/2015 at 06:01PM

8
#1880 - Maxim / @44calibri

10/14/2015 at 08:49PM

8
#1881 - xarmux / @xarmux

10/15/2015 at 08:35PM

8
#1882 - Patrick Mitchell / @jpmitche11

10/15/2015 at 08:59PM

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

10/16/2015 at 08:26AM

8
#1884 - Valacar / @valacar

10/17/2015 at 04:33AM

8
#1885 - Hiroshi Takamatsu / @hitac

10/17/2015 at 04:41AM

8
#1886 - DespicableJerk / @JerkDespicable

10/17/2015 at 04:27PM

8
#1887 - Bowen Deng / @DavidBdeng

10/19/2015 at 11:52PM

8
#1888 - merphant / @merphant

10/22/2015 at 06:22AM

8
#1889 - Yusent Chig / @yusent12

10/22/2015 at 05:13PM

8
#1890 - Campbell Davis / @Campbell_Dav

10/23/2015 at 08:38AM