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
#271 - Alex / @ninjabassist777

08/01/2014 at 02:24PM

8
#272 - Slobodan Mišković / @slobomiskovic

08/01/2014 at 11:00PM

8
#273 - Kolja Wilcke / @01k

08/04/2014 at 04:42PM

8
#274 - Bednarik Boldizsar / @bboldi

08/04/2014 at 08:52PM

8
#275 - Oliver Christ / @0liverChrist

08/04/2014 at 09:02PM

8
#276 - PLS / @jaegd

08/05/2014 at 04:42PM

8
#277 - JonathanStarnes / @JON_STARNES

08/08/2014 at 02:23AM

8
#278 - Robert Dyer / @NavyJim13

08/09/2014 at 12:32AM

8
#279 - Tj / @yrddy

08/13/2014 at 05:33AM

8
#280 - No Holiness / @NoHoliness

08/14/2014 at 06:43PM

8
#281 - basha / @bashaalex

08/15/2014 at 03:21PM

8
#282 - Miles Edland / @ShutUpMiles

08/19/2014 at 03:08AM

8
#283 - Dmitriy / @_dpy_

08/19/2014 at 02:43PM

8
#284 - jmdana / @jmdana

08/21/2014 at 03:11PM

8
#285 - April Gentle / @chen327684096

08/22/2014 at 10:59AM

8
#286 - AC / @quadface

08/23/2014 at 06:00AM

8
#287 - Brian Besmanoff / @BrianBesmanoff

08/27/2014 at 05:39PM

8
#288 - Dr4k3 / @Dr4k3_LE

08/30/2014 at 10:36AM

8
#289 - Edgar Gonzalez / @gonzedge

09/03/2014 at 06:55AM

8
#290 - Dario Avitabile / @tutticapaci

09/03/2014 at 09:41PM

8
#291 - Juan-Lucas Picard / @davidmh

09/09/2014 at 04:45AM

8
#292 - Enrico Carlesso / @carlesso

09/10/2014 at 09:15AM

8
#293 - Martin Keogh / @Martin1Keogh

09/15/2014 at 04:11PM

8
#294 - Jezen Thomas / @jezenthomas

09/21/2014 at 01:56PM

8
#295 - Kevin / @kevinnnnnnh

09/22/2014 at 08:43AM

8
#296 - Roy Vim / @RoyVim

09/24/2014 at 10:33PM

8
#297 - Noah Ruderman / @noahc66260

09/27/2014 at 08:54AM

8
#298 - JForstreuter / @JForstr

10/07/2014 at 09:28AM

8
#299 - Jose Gutierrez / @Jogusa

10/07/2014 at 03:02PM

8
#300 - Daniel Burnett / @mango_cheetah

10/10/2014 at 04:18PM