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 539c50b188b4e20002053e38

Where should I put the Newline?

Help me put the newline.

Start file
You see this --->newline<--- that is the newline.
End file
You see this --->
<--- that is the newline.

View Diff

1c1,2
< You see this --->newline<--- that is the newline.
---
> You see this --->
> <--- that is the newline.

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 391 remaining solutions by signing in and submitting your own entry
#392 Gurukandhamoorthi / @Gurukandhamoor1 - Score: 15 - 07/11/17 @ 14:47
:s/>.*</>\r<<CR>ZZ

0 comments


#393 Jurica / @Jurica34581259 - Score: 15 - 11/16/18 @ 16:41
:s/n.*</\r</<CR>ZZ

0 comments


Created by: @aditcr8

393 active golfers, 782 entries

Leaderboard (lowest score wins):
7
#1 - Adit Cahya Ramadhan / @aditcr8

06/14/2014 at 02:17PM

7
#2 - Amit Verma / @amitv12

06/14/2014 at 02:30PM

7
#3 - Tim Chase / @gumnos

06/14/2014 at 03:58PM

7
#4 - Urtica dioica / @udioica

06/14/2014 at 04:53PM

7
#5 - Nathan Seither / @NathanSeither

06/14/2014 at 05:59PM

7
#6 - Pavlo Klets / @p01nt

06/14/2014 at 07:21PM

7
#7 - Joop Pascha / @PaschaJ

06/14/2014 at 07:28PM

7
#8 - Chaitanya Desu / @ChaituNu

06/14/2014 at 08:44PM

7
#9 - Jacob Niehus / @wilywampa

06/14/2014 at 11:01PM

7
#10 - Sntano Euhsk / @SEuhsk

06/14/2014 at 11:31PM

7
#11 - yaon / @yaon4

06/15/2014 at 02:03AM

7
#12 - Alec Johanson / @alecj007

06/15/2014 at 03:25PM

7
#13 - Robert Siemieniec / @rsiemieniec

06/15/2014 at 07:02PM

7
#14 - Herr Oppermann / @HerrOppermann

06/15/2014 at 08:34PM

7
#15 - Leland Paul Kusmer / @lelandpaul

06/15/2014 at 11:36PM

7
#16 - Petro Тrouq / @zulolosi

06/16/2014 at 01:57AM

7
#17 - Mina Naguib / @minaguib

06/16/2014 at 02:49AM

7
#18 - Max Sherman / @johnislarry

06/16/2014 at 04:56AM

7
#19 - Bart / @oneofmanybarts

06/16/2014 at 06:46AM

7
#20 - typp / @tehtyppz

06/16/2014 at 12:01PM

7
#21 - Kai Yuan / @kentyuan

06/16/2014 at 12:33PM

7
#22 - vimgolf copycat / @vimgolf_copycat

06/16/2014 at 05:31PM

7
#23 - Alexander Bandukwala / @abanduk

06/16/2014 at 06:20PM

7
#24 - Tyler Holien / @tylerholien

06/17/2014 at 02:52PM

7
#25 - Edric Garran / @edric_garran

06/17/2014 at 09:30PM

7
#26 - Timmy! / @timx

06/17/2014 at 10:05PM

7
#27 - Marcin Kumorek / @qmmr

06/18/2014 at 08:30AM

7
#28 - Dmitry Teslenko / @krab_mozga

06/18/2014 at 10:48AM

7
#29 - John Braxler / @braxler

06/18/2014 at 04:45PM

7
#30 - Nicolas Valcarcel / @nxvl

06/18/2014 at 10:39PM