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
#331 - pftb12345 / @pftb12345

03/27/2015 at 02:28PM

8
#332 - Garrett Smith / @garrettwhsmith

03/29/2015 at 05:28PM

8
#333 - we’re going to need a bigger bot / @assaflavie

04/22/2015 at 07:01PM

8
#334 - Tom van der Lee / @TomVdLee

04/29/2015 at 11:32AM

8
#335 - π / @paivaspol

05/08/2015 at 02:44AM

8
#336 - Clark DuVall / @theclarkatron

05/18/2015 at 06:55AM

8
#337 - Klemen Košir / @KarboniteKream

05/26/2015 at 01:34PM

8
#338 - luffy / @raxcoi

06/06/2015 at 04:54PM

8
#339 - Sahana Rajasekar / @sahanarajasekar

06/11/2015 at 04:21AM

8
#340 - Joel Gallant / @joelg236

06/18/2015 at 07:59PM

8
#341 - Kyle Fuller / @kylefuller

07/17/2015 at 02:15AM

8
#342 - Scott Traver / @ScottTraver

08/13/2015 at 08:14PM

8
#343 - Lifepillar / @lifepillar

08/14/2015 at 06:36PM

8
#344 - John Clara / @johnanthclara

08/24/2015 at 08:42PM

8
#345 - Gerald Tilma / @GeraldTilma

10/18/2015 at 07:52PM

8
#346 - NuM / @NuM314

10/21/2015 at 05:27PM

8
#347 - merphant / @merphant

10/24/2015 at 05:48AM

8
#348 - Daniel Imhoff / @dwieeb

10/24/2015 at 08:42PM

8
#349 - ORchard test / @BilboBrovall

10/26/2015 at 12:11PM

8
#350 - Bogumił Kamiński / @BogumilKaminski

10/26/2015 at 08:48PM

8
#351 - VimGolfUser / @UserVim

11/11/2015 at 12:29AM

8
#352 - Dave Powell / @d_pow_pow

11/13/2015 at 12:55PM

8
#353 - kiou / @smallletterquu

12/04/2015 at 11:57PM

8
#354 - Paulo Romeira / @pauloromeira

12/07/2015 at 07:28AM

8
#355 - Jakob Schöttl / @jschoettl

12/20/2015 at 05:09AM

8
#356 - Etienne Tremel / @etiennetremel

02/07/2016 at 08:45PM

8
#357 - Cristian Lupașcu / @clupasq

02/21/2016 at 01:19PM

8
#358 - Tran Duc Thang / @thangtd90

03/06/2016 at 08:33AM

8
#359 - Chenut Ludovic / @7Brwa7

04/05/2016 at 12:18PM

8
#360 - tPenguinLTG / @tpenguinltg

05/15/2016 at 07:05AM