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):
7
#181 - jdupont655 / @jdupont655

09/06/2016 at 02:06PM

7
#182 - Kyouma / @kyoumaJohn

10/14/2016 at 06:50PM

7
#183 - trx / @trxdbg

10/24/2016 at 09:55AM

7
#184 - Bill Ruddock / @biinari

11/01/2016 at 01:20AM

7
#185 - Eduardo Hashimoto / @eduhashi

01/03/2017 at 01:07PM

7
#186 - Saki Gw / @Sakigw

02/07/2017 at 07:02PM

7
#187 - Yann / @yannstad

02/26/2017 at 08:20AM

7
#188 - Daniel / @Daniel00288663

03/27/2017 at 01:00PM

7
#189 - James Houghton / @jamesthoughton

05/19/2017 at 07:59PM

7
#190 - 梧桐王子 / @WutongYujie

06/06/2017 at 02:32AM

7
#191 - Jacob Buete / @JBuete

08/21/2017 at 10:49PM

7
#192 - John Doe / @Xeraphobiac

10/04/2017 at 04:25PM

7
#193 - Turkey Man / @lvturkeyman

11/19/2017 at 04:38AM

7
#194 - Andrei Gasparovici / @agasparovici

12/02/2017 at 09:36AM

7
#195 - BarbaJol / @drpproteus

01/02/2018 at 06:50PM

7
#196 - c0llision / @sh3llcode

01/27/2018 at 10:46PM

7
#197 - HypoTech / @Obongoetco

01/31/2018 at 10:52AM

7
#198 - LC / @leeren

03/03/2018 at 11:33PM

7
#199 - DHM / @DHM29978992

04/28/2018 at 03:35PM

7
#200 - Daniël De Koker / @daniel_koker

07/11/2018 at 06:31AM

7
#201 - Hugo / @szeyattai

08/20/2018 at 03:07AM

7
#202 - Dax / @zacoxi

11/19/2018 at 06:59AM

7
#203 - Mihai / @mihaicristiant

12/24/2018 at 12:48PM

7
#204 - alekfed / @alek_fed

04/15/2019 at 08:16PM

7
#205 - Дима / @dimkino

05/31/2019 at 10:01PM

7
#206 - majo senf / @majo_senf

06/21/2019 at 12:22PM

8
#207 - w1zeman1p / @wizemanip

06/14/2014 at 02:00PM

8
#208 - Ole Hansen / @0hansen

06/14/2014 at 02:01PM

8
#209 - Anton Davydov / @anton_davydov

06/14/2014 at 02:03PM

8
#210 - James / @Dronak

06/14/2014 at 02:04PM