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
#2281 - Ryan Jarrett / @texmexas

03/15/2017 at 03:49PM

8
#2282 - Andreas Anderbach / @anderbacha

03/19/2017 at 04:56PM

8
#2283 - Reinaldo Astudillo / @astudillor

03/22/2017 at 12:34PM

8
#2284 - Mark Brody / @_markbrody

03/23/2017 at 04:53AM

8
#2285 - caplod / @caplod

03/24/2017 at 04:05PM

8
#2286 - BlackCap / @BlackCapCoder

03/24/2017 at 05:11PM

8
#2287 - Travis Bybee / @bybeet

03/24/2017 at 09:20PM

8
#2288 - ʎɐɹ / @staticjak

03/24/2017 at 09:22PM

8
#2289 - VpzomTrrfrt / @vpzomtrrfrt

03/28/2017 at 01:19AM

8
#2290 - Nachiket Bhave / @nachiketvb

03/28/2017 at 09:06AM

8
#2291 - Daniel / @Daniel00288663

03/29/2017 at 01:28PM

8
#2292 - Solomon / @Trugbildjaeger

03/31/2017 at 05:46AM

8
#2293 - chamow / @sbakeugs

04/03/2017 at 02:37PM

8
#2294 - ネギ / @NegiGreenWhite

04/07/2017 at 04:07PM

8
#2295 - Миша Сорокин / @rafmikovi4

04/08/2017 at 09:01PM

8
#2296 - Jan Mollowitz / @jmollowitz

04/09/2017 at 07:44PM

8
#2297 - Milovan Zogovic / @zogash

04/13/2017 at 07:21AM

8
#2298 - 20speedvegan / @ashkevinm

04/13/2017 at 07:46PM

8
#2299 - Harry Uzzell / @HarryMUzzell

04/13/2017 at 09:42PM

8
#2300 - ephemient / @ephemient

04/15/2017 at 06:52AM

8
#2301 - Peter Gundel / @GundelMail

04/16/2017 at 07:12PM

8
#2302 - Colby Hamilton / @ColbyHamilton5

04/17/2017 at 07:41PM

8
#2303 - Nguyen Ngoc Trung / @trunga0

04/19/2017 at 09:10AM

8
#2304 - aumgn / @aum9n

04/19/2017 at 05:53PM

8
#2305 - Akash Khan / @akash93

04/20/2017 at 08:44AM

8
#2306 - Luke DeWitt / @lanewalkerx

04/20/2017 at 06:23PM

8
#2307 - Jason Hooper 🇨🇦 / @jasonincanada

04/22/2017 at 09:06PM

8
#2308 - Pratik Prasad / @pratik

04/23/2017 at 12:33AM

8
#2309 - Elcio Ferreira / @elcio

04/26/2017 at 12:31AM

8
#2310 - Stefan Uhl / @der_wuschl

04/28/2017 at 09:01AM