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

4181 active golfers, 11417 entries

Leaderboard (lowest score wins):
8
#1861 - João Pedro Foscarini / @FoscariniJoao

06/09/2015 at 12:35PM

8
#1862 - ッ / @e38383

06/09/2015 at 02:21PM

8
#1863 - Jezen Thomas / @jezenthomas

06/09/2015 at 08:40PM

8
#1864 - How Si Wei / @houxiwu

06/10/2015 at 11:32AM

8
#1865 - Vishwas B Sharma / @sharmavishwas7

06/10/2015 at 07:07PM

8
#1866 - Quota / @Quotad

06/12/2015 at 09:17AM

8
#1867 - Jake Gillespie / @jdgillespie91

06/12/2015 at 10:00PM

8
#1868 - Mutter Mumble / @muttermumble

06/15/2015 at 05:03PM

8
#1869 - Lifepillar / @lifepillar

06/15/2015 at 09:05PM

8
#1870 - Fnord Everywhere / @FnordE

06/18/2015 at 12:02PM

8
#1871 - SP / @vimgolfer42

06/18/2015 at 11:00PM

8
#1872 - raghu erapaneedi / @raghue9

06/19/2015 at 09:10AM

8
#1873 - Mathew Abado / @MathewAbado

06/19/2015 at 03:45PM

8
#1874 - qwe31asd / @qwe31asd

06/19/2015 at 04:58PM

8
#1875 - roboguy / @roboguy

06/20/2015 at 03:50AM

8
#1876 - Albert Lo / @seroalbert

06/20/2015 at 09:53AM

8
#1877 - isayoldchap / @isayoldchap

06/20/2015 at 06:58PM

8
#1878 - Geoff Gu / @geoff_gu

06/23/2015 at 03:58PM

8
#1879 - John Freeman / @TheJohnFreeman

06/24/2015 at 01:48AM

8
#1880 - Igor Soarez / @igorsoarez

06/24/2015 at 09:31AM

8
#1881 - Vallaa / @2qq3KpoVpQ7xxDK

06/24/2015 at 11:19AM

8
#1882 - Jimmy Börjesson / @alcesleo

06/24/2015 at 01:51PM

8
#1883 - Joel Elkins / @dice_tea

06/24/2015 at 06:02PM

8
#1884 - Skúli Jóhannsson / @skulibj

06/25/2015 at 04:17PM

8
#1885 - Jan Wirth / @FranzSkuffka

06/29/2015 at 09:04AM

8
#1886 - Nicola Girardi / @bruciasse

07/02/2015 at 12:49AM

8
#1887 - Mike DeBruyn / @djroot2

07/03/2015 at 01:56AM

8
#1888 - Cakejoke / @Cakejoke

07/05/2015 at 02:39PM

8
#1889 - Teemu Okkonen / @TeemuOkkonen

07/06/2015 at 09:09AM

8
#1890 - Paul Schaefer / @schaeferpp

07/06/2015 at 09:10AM