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

0 comments


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

0 comments


Created by: @aditcr8

412 active golfers, 824 entries

Leaderboard (lowest score wins):
7
#121 - eBrnd / @eBrnd

11/02/2014 at 01:00PM

7
#122 - Ah B / @ccxzyc

11/04/2014 at 01:00PM

7
#123 - Hrvoje Kopinc / @Hrwaaa

11/16/2014 at 06:14PM

7
#124 - Keyboard Fire / @KeyboardFire

11/22/2014 at 02:44PM

7
#125 - jake worth / @jwworth

11/22/2014 at 07:40PM

7
#126 - Roberto Alegro / @robertoaall

11/30/2014 at 04:41AM

7
#127 - Ivan Brennan / @ivanbrennan

12/02/2014 at 03:17AM

7
#128 - r. / @rmarvie

12/19/2014 at 10:59AM

7
#129 - david hu / @chin33z

12/20/2014 at 02:56PM

7
#130 - Jake Eskel / @JakeEskel

12/31/2014 at 08:58PM

7
#131 - Jordana Lachow / @TomofBedlam

01/11/2015 at 04:29PM

7
#132 - Charles H. Leggett / @cleggett

01/12/2015 at 04:32PM

7
#133 - kungfuchad / @kungfuchad

01/14/2015 at 11:41AM

7
#134 - Raynard, Jordan / @raynard_jordan

01/14/2015 at 02:04PM

7
#135 - kimber gonzalez / @kimberlycreates

01/22/2015 at 03:52PM

7
#136 - mark0829 / @mark0829

01/31/2015 at 05:11AM

7
#137 - xieyh11 / @xieyh11

02/21/2015 at 04:25AM

7
#138 - Michael Giuffrida / @mgiuffrida

02/24/2015 at 08:57AM

7
#139 - Roger Spencer / @RojSpencer

03/12/2015 at 10:52PM

7
#140 - Walf / @walfieee

03/23/2015 at 09:37PM

7
#141 - Tom Richards / @the_tomrichards

04/03/2015 at 04:48PM

7
#142 - E Both / @enboth

04/24/2015 at 03:22PM

7
#143 - Raj / @brshenoy

04/27/2015 at 02:49PM

7
#144 - Benny Wong / @bdotdub

04/27/2015 at 03:16PM

7
#145 - Evan Coleman / @edc1591

04/27/2015 at 03:28PM

7
#146 - Alex Bartol / @alexbartol

05/13/2015 at 06:18PM

7
#147 - Robert Robertson / @RobertC3228687

06/04/2015 at 02:17PM

7
#148 - ɹǝsnɐɥsıʇnɹ uoɾ / @JonRutis

06/04/2015 at 02:28PM

7
#149 - Hendrik Lammers / @hendriklammers

06/20/2015 at 11:48AM

7
#150 - Jack Z / @itszhou

06/28/2015 at 05:45PM