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):
7
#211 - JimmyGymglish / @JGymglish

01/15/2020 at 03:31PM

7
#212 - Delon / @delonleonard

01/21/2020 at 10:44AM

7
#213 - r4d1um / @r4d1um

03/13/2020 at 04:08PM

8
#214 - CJ Avilla / @wizemanip

06/14/2014 at 02:00PM

8
#215 - Ole Hansen / @0hansen

06/14/2014 at 02:01PM

8
#216 - Anton Davydov / @anton_davydov

06/14/2014 at 02:03PM

8
#217 - James / @Dronak

06/14/2014 at 02:04PM

8
#218 - Christoph Neuroth / @c089

06/14/2014 at 02:16PM

8
#219 - Hariom Balhara / @hariom_balhara

06/14/2014 at 04:08PM

8
#220 - Vinicius Souza / @vsouzas

06/14/2014 at 05:33PM

8
#221 - Корнев Руслан / @woto7

06/15/2014 at 12:48AM

8
#222 - Gwilym Kuiper / @gwilymk

06/15/2014 at 01:34AM

8
#223 - RobertT / @techrt2050

06/15/2014 at 03:19AM

8
#224 - Lieven Keersmaekers / @LievenKeersmaek

06/15/2014 at 09:38AM

8
#225 - asdklei / @asdklei

06/15/2014 at 04:51PM

8
#226 - Bambu / @bambumandinga

06/16/2014 at 11:28PM

8
#227 - Gabutero / @wizmokeri

06/17/2014 at 06:15AM

8
#228 - Ravi S Sinha / @ambidextrousTx

06/17/2014 at 08:50AM

8
#229 - Garrett Oreilly / @garrett_oh

06/17/2014 at 02:48PM

8
#230 - Jemma / @Fwippy

06/18/2014 at 11:06PM

8
#231 - ryk / @rykarn

06/19/2014 at 11:41AM

8
#232 - Nic West / @west_nic

06/21/2014 at 12:01PM

8
#233 - yasuhiroki / @dax_yasuhiroki

06/22/2014 at 01:04PM

8
#234 - Jeroen Bulters / @bulters

06/22/2014 at 01:22PM

8
#235 - eitanlees / @eitanlees

06/23/2014 at 04:23AM

8
#236 - ドラゴン井門 / @ido_mazine

06/23/2014 at 10:33AM

8
#237 - lee / @jvmxtra

06/23/2014 at 12:28PM

8
#238 - Strabs / @artistavenue

06/23/2014 at 02:16PM

8
#239 - Richard Jones / @metabrew

06/24/2014 at 05:47PM

8
#240 - Shugo Tanaka / @shugoingplaces

06/24/2014 at 07:15PM