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

4232 active golfers, 11546 entries

Leaderboard (lowest score wins):
9
#3301 - Samuel Masuy / @samasuy

03/19/2015 at 12:40AM

9
#3302 - Kamil Laskowski / @laskowskikamil

03/19/2015 at 08:49PM

9
#3303 - Dhuan!! / @sigadhuan

03/19/2015 at 11:06PM

9
#3304 - Vittorio Tortugo / @vik_rocknrolla

04/04/2015 at 08:33AM

9
#3305 - matthieu le grix / @mlegrix

04/04/2015 at 01:56PM

9
#3306 - gengjiawen / @gengjiawen

04/08/2015 at 06:14AM

9
#3307 - Michael Cramer / @mlcramer

04/11/2015 at 01:16PM

9
#3308 - Arthur Karganyan / @arthurkarganyan

04/12/2015 at 10:28AM

9
#3309 - John Lee / @NSA_agent_209

04/12/2015 at 06:50PM

9
#3310 - Gunnar X / @omgitsgunnar

04/13/2015 at 09:39PM

9
#3311 - Adrian Steffen / @fencer85math1

04/14/2015 at 09:59PM

9
#3312 - Florenz / @track02

04/17/2015 at 11:16AM

9
#3313 - Jean Carlo Machado / @JeanCarloMachad

04/18/2015 at 12:58PM

9
#3314 - Martijn Theunissen / @Martijn_______

04/21/2015 at 06:09PM

9
#3315 - Stefan Knudsen / @knud32

04/25/2015 at 04:34AM

9
#3316 - Brian Olpin / @bolpin

04/28/2015 at 09:35PM

9
#3317 - Rolf / @liffon

04/29/2015 at 06:02AM

9
#3318 - montalvoMiguel / @imontalvomiguel

04/29/2015 at 07:06AM

9
#3319 - Gael Roue / @gaelroue

05/02/2015 at 01:52PM

9
#3320 - Daniel Allen Deutsch / @cmmn_nighthawk

05/04/2015 at 10:22PM

9
#3321 - Matthias Bilger / @m4n2b

05/06/2015 at 07:31AM

9
#3322 - Joseph Roberts / @joey9801

05/06/2015 at 12:28PM

9
#3323 - Chris Trombley / @ctrombley

05/06/2015 at 11:00PM

9
#3324 - たんたる / @tantal_mech

05/06/2015 at 11:53PM

9
#3325 - Markus Krallinger / @markuskrall

05/07/2015 at 10:32AM

9
#3326 - m a c s f / @macsf

05/07/2015 at 01:56PM

9
#3327 - Formally Dallin / @FormallyDallin

05/07/2015 at 10:56PM

9
#3328 - Ivan Kasatenko / @sky31338

05/09/2015 at 04:11PM

9
#3329 - Steve Gibson / @thegiblet75

05/11/2015 at 02:21PM

9
#3330 - Chris / @crr0004

05/12/2015 at 07:58AM