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

0 comments


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

0 comments


Created by: @aditcr8

401 active golfers, 798 entries

Leaderboard (lowest score wins):
8
#241 - Kerson Hsiao / @KersonHsiao

06/26/2014 at 12:03PM

8
#242 - ゆきみ / @edp02

06/26/2014 at 12:25PM

8
#243 - blamitter ✏️ / @blamitter

06/27/2014 at 10:04PM

8
#244 - Mandy Choi / @mundi_c

06/27/2014 at 10:30PM

8
#245 - Ram Tamtam / @ramtamtamtam

06/29/2014 at 01:09PM

8
#246 - uncleringo / @uncleringo

07/02/2014 at 08:27AM

8
#247 - Juan Luis / @rufianw

07/03/2014 at 03:07AM

8
#248 - Bryan Rathouz / @BryanRathouz

07/03/2014 at 06:54PM

8
#249 - vansan / @VinceVansan

07/04/2014 at 02:50PM

8
#250 - kwa / @kwa129

07/04/2014 at 03:00PM

8
#251 - Adam G / @gougerz

07/04/2014 at 07:29PM

8
#252 - Joakim Karlsson / @JHKarlsson

07/06/2014 at 12:02PM

8
#253 - playalong / @playwithit42

07/07/2014 at 08:30AM

8
#254 - David Hume / @djh95

07/07/2014 at 09:12AM

8
#255 - Michi Loro / @michiloro

07/07/2014 at 10:10AM

8
#256 - Laura Halla / @laura_halla

07/09/2014 at 01:04AM

8
#257 - Naoki Masuko / @nmasuko

07/10/2014 at 11:10PM

8
#258 - Masato Mori / @morimorihoge

07/11/2014 at 11:03AM

8
#259 - João Carvalho / @joaoCarvas

07/11/2014 at 12:05PM

8
#260 - yamasita taisuke / @yaasita

07/11/2014 at 12:35PM

8
#261 - Florian Duraffourg / @fduraffourg

07/12/2014 at 08:38AM

8
#262 - Vim Golfer / @thevimgolfer

07/13/2014 at 10:25AM

8
#263 - Johnny Goodnow / @afragilemachine

07/15/2014 at 07:39AM

8
#264 - Matt Elliott / @matttelliott

07/16/2014 at 02:37AM

8
#265 - AA / @stonewareslord

07/16/2014 at 03:18AM

8
#266 - Jonas Höglund / @FireyFly

07/16/2014 at 03:23PM

8
#267 - Daniel / @dcmonger

07/18/2014 at 05:25AM

8
#268 - My Info / @kwehlert

07/20/2014 at 06:31PM

8
#269 - Paul Axe / @Paul_Axe

07/29/2014 at 11:13AM

8
#270 - Eduardo / @earada

07/31/2014 at 11:10AM