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):
8
#361 - Paulo Romeira / @pauloromeira

12/07/2015 at 07:28AM

8
#362 - Jakob Schöttl / @jschoettl

12/20/2015 at 05:09AM

8
#363 - Etienne Tremel / @etiennetremel

02/07/2016 at 08:45PM

8
#364 - Cristian Lupașcu / @clupasq

02/21/2016 at 01:19PM

8
#365 - Tran Duc Thang / @thangtd90

03/06/2016 at 08:33AM

8
#366 - Chenut Ludovic / @7Brwa7

04/05/2016 at 12:18PM

8
#367 - tPenguinLTG / @tpenguinltg

05/15/2016 at 07:05AM

8
#368 - some call me mattp / @mattpep

05/16/2016 at 10:05PM

8
#369 - Luke Was / @acatalepteron

08/15/2016 at 11:46PM

8
#370 - TweetDreams / @TweetMusicians

10/15/2016 at 06:46PM

8
#371 - Christian Rondeau / @c_rondeau

10/18/2016 at 02:02AM

8
#372 - BlackCap / @BlackCapCoder

11/30/2016 at 01:07PM

8
#373 - Michał Dytko / @DytkoM

12/23/2016 at 09:00AM

8
#374 - 20speedvegan / @ashkevinm

04/14/2017 at 05:35PM

8
#375 - Solomon / @Trugbildjaeger

04/15/2017 at 02:17PM

8
#376 - Jonas Sunde V / @sunde_v

08/04/2017 at 05:20PM

8
#377 - Saul Hardman / @saulhardman

08/11/2017 at 08:56AM

8
#378 - Paul Draghicescu / @pdragy

03/22/2018 at 10:50PM

8
#379 - Nicholas Ockmsson / @Nockm

05/04/2018 at 11:37PM

8
#380 - qed / @qed13308565

07/24/2018 at 07:04PM

8
#381 - Brent Woo / @BrentPWoo

10/01/2018 at 08:39PM

8
#382 - name / @name65894813

11/25/2018 at 03:52AM

8
#383 - albalitz / @_albalitz

06/06/2019 at 03:28PM

8
#384 - deHman89 / @danho89

06/07/2019 at 07:54AM

8
#385 - Chester Yap / @Chest_ErYap

07/28/2019 at 11:53PM

8
#386 - Ivo Blöchliger / @aigledesalpes

08/17/2019 at 10:16AM

8
#387 - wrglprmft2 / @wrglprmft2

10/18/2019 at 06:24PM

8
#388 - Lory / @Lory46845742

11/20/2019 at 12:47PM

8
#389 - Aaron / @_Lordofthevoid_

12/09/2019 at 07:06AM

8
#390 - Ryan Nevius / @ryannevius

03/22/2020 at 07:59PM