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
#2491 - Tim / @timothyscosta

03/07/2018 at 02:43PM

8
#2492 - slicklash / @slicklash

03/08/2018 at 08:12PM

8
#2493 - Matthew Barry / @komputerwiz

03/11/2018 at 05:38AM

8
#2494 - Sergio Semedi / @SergioSemedi

03/11/2018 at 02:10PM

8
#2495 - Patrick Haugh / @haughpj

03/12/2018 at 06:32PM

8
#2496 - Lisa Ugray / @lisa_ugray

03/13/2018 at 01:46PM

8
#2497 - Максим Андраманов / @max362075

03/17/2018 at 12:12PM

8
#2498 - Vim Golfer / @vimgolfing

03/18/2018 at 09:59PM

8
#2499 - Paul Page / @theRealPaulPage

03/19/2018 at 09:30PM

8
#2500 - 煎饼果子 / @melongirl_SH

03/20/2018 at 03:18PM

8
#2501 - Oleg Skillup / @skill_up

03/20/2018 at 07:17PM

8
#2502 - Paul Draghicescu / @pdragy

03/22/2018 at 05:45AM

8
#2503 - David Pimentel / @daveypimentel

03/22/2018 at 09:46PM

8
#2504 - Tim Boooo-ckley 👻 / @timbucki

03/23/2018 at 01:39AM

8
#2505 - DQMSL対戦募集ツイートbot / @foronlinegamer

03/23/2018 at 06:44AM

8
#2506 - Plósz Péter / @ploszpe

03/23/2018 at 09:35PM

8
#2507 - gerry / @ggaonag

03/29/2018 at 10:19PM

8
#2508 - Ted Carlsson / @TedCarlsson

03/31/2018 at 10:36PM

8
#2509 - 서강훈 / @shirano150

04/02/2018 at 08:16AM

8
#2510 - Fichera Gaetano / @gaetanofic

04/05/2018 at 03:18PM

8
#2511 - Marcos Almeida / @almeidamarcos_

04/08/2018 at 10:41AM

8
#2512 - DHM / @DHM29978992

04/09/2018 at 07:31PM

8
#2513 - Yigit Sever / @_yigitsever

04/10/2018 at 09:41PM

8
#2514 - Adigan / @Addigan

04/12/2018 at 10:06AM

8
#2515 - Yuki Sato / @yukibear_dev

04/24/2018 at 08:32AM

8
#2516 - Vanda Hendrychová / @vandiacutek

04/24/2018 at 03:23PM

8
#2517 - jet / @jameslintaylor

04/26/2018 at 01:30AM

8
#2518 - Felipe Jacob / @FfJacob

04/26/2018 at 05:57AM

8
#2519 - Alex Budilovsky / @alexbudy

05/02/2018 at 01:06AM

8
#2520 - rg thomas / @rgt47

05/03/2018 at 03:51AM