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

3955 active golfers, 10709 entries

Leaderboard (lowest score wins):
8
#2071 - Jake Griffin / @J4K0_G

04/21/2016 at 10:00PM

8
#2072 - Zihan Zheng / @zhengzihan1996

04/22/2016 at 05:27PM

8
#2073 - Olivia Tharp / @tehlivi

04/22/2016 at 08:11PM

8
#2074 - Feras / @faldah

04/24/2016 at 03:21AM

8
#2075 - Johnny Zhou / @JohnnyZhou01

04/24/2016 at 12:50PM

8
#2076 - tPenguinLTG / @tpenguinltg

04/25/2016 at 04:24AM

8
#2077 - Ikaraf Gmiv / @ikarafgmiv

04/25/2016 at 05:00AM

8
#2078 - Tom Harada / @p10q

04/28/2016 at 06:03AM

8
#2079 - L3viathan / @L3viathan2142

04/28/2016 at 04:58PM

8
#2080 - Nicholas Marasco / @Zero_Toast

04/28/2016 at 09:54PM

8
#2081 - Kawin Nikomborirak / @nikomborirak

05/02/2016 at 05:24AM

8
#2082 - Jason Pleau / @JasonPleau

05/02/2016 at 02:41PM

8
#2083 - Eero-Antero Säisä / @jakolasku

05/02/2016 at 03:51PM

8
#2084 - Matt Clement / @zetaspartan2552

05/02/2016 at 07:18PM

8
#2085 - Ian Malerich / @IMalerich

05/03/2016 at 07:58PM

8
#2086 - Eric Wannemacher / @ericwannemacher

05/04/2016 at 02:16AM

8
#2087 - David Bjergaard / @dbjergaard

05/05/2016 at 02:27AM

8
#2088 - Lim Chun Leng / @chunleng

05/06/2016 at 01:59PM

8
#2089 - Rob Ert / @robrunner888

05/09/2016 at 10:43AM

8
#2090 - Adam Thunberg / @adam_ytlas

05/10/2016 at 02:15AM

8
#2091 - matt_todd / @matt_todd

05/11/2016 at 12:19AM

8
#2092 - David / @david_hemminger

05/11/2016 at 12:34AM

8
#2093 - Malte R / @maltoe

05/11/2016 at 08:00AM

8
#2094 - anoniem / @asq123sadf

05/11/2016 at 11:43PM

8
#2095 - Tom / @CronutFacts

05/12/2016 at 12:47AM

8
#2096 - Michael Dykman / @MichaelDykman

05/12/2016 at 01:00PM

8
#2097 - some call me mattp / @mattpep

05/12/2016 at 10:17PM

8
#2098 - Ben Hill / @KaizenSoze70

05/13/2016 at 06:27PM

8
#2099 - Andres Araya / @arayaandresfco

05/14/2016 at 02:55AM

8
#2100 - eiladin / @eiladin

05/14/2016 at 03:45AM