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

4213 active golfers, 11494 entries

Leaderboard (lowest score wins):
9
#3271 - louis sherren / @louis_sherren

02/27/2015 at 08:34AM

9
#3272 - Thomas Borowski / @thomasborowski

02/28/2015 at 07:42PM

9
#3273 - YK / @Dongas420

03/01/2015 at 02:00AM

9
#3274 - Michael Gerdes / @mgerdes11

03/02/2015 at 08:17PM

9
#3275 - Hugh G Rection / @RectionGHugh

03/02/2015 at 08:27PM

9
#3276 - Олександр Крилов / @o_v_krylov

03/04/2015 at 07:12PM

9
#3277 - US Dollar Price / @USDollarPrice

03/08/2015 at 12:03AM

9
#3278 - Stefan Sonski / @stefansonski

03/08/2015 at 10:20AM

9
#3279 - dosmanak / @dosmanak

03/10/2015 at 12:41PM

9
#3280 - Deepak Surti / @dmsurti

03/12/2015 at 12:49PM

9
#3281 - Jeffrey Gu / @Jeffrey_Gu

03/12/2015 at 03:23PM

9
#3282 - Loïs / @Zoneur

03/13/2015 at 04:17PM

9
#3283 - el R / @el_r

03/13/2015 at 10:37PM

9
#3284 - Frode Danielsen / @fdanielsen

03/14/2015 at 05:26PM

9
#3285 - Travis / @trayoda

03/16/2015 at 10:30PM

9
#3286 - ddddave / @baby_goat

03/17/2015 at 07:43PM

9
#3287 - Nicholas Scricco / @nscricco

03/17/2015 at 08:42PM

9
#3288 - Samuel Masuy / @samasuy

03/19/2015 at 12:40AM

9
#3289 - Kamil Laskowski / @laskowskikamil

03/19/2015 at 08:49PM

9
#3290 - Dhuan!! / @sigadhuan

03/19/2015 at 11:06PM

9
#3291 - Vittorio Tortugo / @vik_rocknrolla

04/04/2015 at 08:33AM

9
#3292 - matthieu le grix / @mlegrix

04/04/2015 at 01:56PM

9
#3293 - gengjiawen / @gengjiawen

04/08/2015 at 06:14AM

9
#3294 - Michael Cramer / @mlcramer

04/11/2015 at 01:16PM

9
#3295 - Arthur Karganyan / @arthurkarganyan

04/12/2015 at 10:28AM

9
#3296 - John Lee / @NSA_agent_209

04/12/2015 at 06:50PM

9
#3297 - Gunnar X / @omgitsgunnar

04/13/2015 at 09:39PM

9
#3298 - Adrian Steffen / @fencer85math1

04/14/2015 at 09:59PM

9
#3299 - Florenz / @track02

04/17/2015 at 11:16AM

9
#3300 - Jean Carlo Machado / @JeanCarloMachad

04/18/2015 at 12:58PM