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
#301 - Philipp Aeschbach / @ihbmifqerg

10/12/2014 at 03:02PM

8
#302 - Matthew Leadbetter / @Halty

10/14/2014 at 11:45AM

8
#303 - R / @7vies

10/21/2014 at 04:15AM

8
#304 - ЕвгенийВ / @imater

10/27/2014 at 12:09PM

8
#305 - deris / @deris0126

11/06/2014 at 04:40PM

8
#306 - Jan Novak / @odpadnimail

11/19/2014 at 04:54AM

8
#307 - Glauco Pires / @grpires

11/25/2014 at 01:46AM

8
#308 - Test User / @TestUserIgnore

12/04/2014 at 11:04PM

8
#309 - Matt / @mcr05

12/05/2014 at 10:15PM

8
#310 - Andrew Leung / @aleungpivotal

12/22/2014 at 08:33PM

8
#311 - Filipe Almeida / @filipe_almeida

12/31/2014 at 10:12AM

8
#312 - kawas / @kawas44

01/01/2015 at 05:16PM

8
#313 - JW / @justuswilhelm

01/06/2015 at 09:16PM

8
#314 - Carlos A Henríquez Q / @lagunex

01/18/2015 at 04:13PM

8
#315 - SilentFl / @Silent_Fl

01/27/2015 at 08:23AM

8
#316 - no name / @vimgol

01/28/2015 at 06:56PM

8
#317 - Roman Firt / @RomanFirt

01/29/2015 at 08:22PM

8
#318 - Алексанр Цыганков / @capybarov

02/13/2015 at 03:24PM

8
#319 - d1uckym d1uckym / @d1uckym

02/16/2015 at 06:45AM

8
#320 - OlivierLi / @LiZhongSin

02/16/2015 at 09:01PM

8
#321 - Dmitry Zudochkin / @zudochkin

02/18/2015 at 10:26AM

8
#322 - Matthew Bender / @iobender

03/02/2015 at 08:52PM

8
#323 - Elizabeth / @sprinkles418

03/03/2015 at 07:24PM

8
#324 - Mariano Macchi / @mmacchif

03/06/2015 at 12:00PM

8
#325 - dosmanak / @dosmanak

03/09/2015 at 03:53PM

8
#326 - Martin Liberg / @marreman

03/09/2015 at 08:40PM

8
#327 - TheProgrammer971 / @tp971

03/14/2015 at 02:49AM

8
#328 - Martijn Pepping / @mpepping

03/15/2015 at 09:08PM

8
#329 - Deepak Surti / @dmsurti

03/17/2015 at 01:33PM

8
#330 - ɐʇnɥsɐpoʇ / @todashuta

03/25/2015 at 01:52PM