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
#91 - Justin Weidner / @justinweidner

07/24/2014 at 09:51PM

7
#92 - Fernan Smol / @pfos09

07/25/2014 at 02:43PM

7
#93 - gybilis / @gybilis

07/29/2014 at 05:19PM

7
#94 - I / @ForgetIt17

07/29/2014 at 07:16PM

7
#95 - Joakim Hansen / @gnofs

07/31/2014 at 01:16AM

7
#96 - madka / @lachrimae_pavan

08/03/2014 at 01:15PM

7
#97 - Patrick Pitoscia / @Patrick03960431

08/03/2014 at 04:54PM

7
#98 - Stefan Schmidt / @stafue

08/08/2014 at 01:36PM

7
#99 - joshuavial / @joshuavial

08/16/2014 at 01:53AM

7
#100 - Fan Zhang / @2bDeactivat3d

08/18/2014 at 02:16AM

7
#101 - booom / @ateukme

08/18/2014 at 09:30PM

7
#102 - Bill Booth / @ohiopyle

08/20/2014 at 02:13AM

7
#103 - Vim Fandango / @VimFandango

08/27/2014 at 05:00PM

7
#104 - Phil Runninger / @PhilRunninger

08/29/2014 at 02:36PM

7
#105 - Daniel Beck / @daniel_beck_il

08/29/2014 at 11:57PM

7
#106 - See BEAMs through walls / @hauleth

09/02/2014 at 09:58PM

7
#107 - John Smith / @literacyisgood

09/05/2014 at 05:11PM

7
#108 - isayoldchap / @isayoldchap

09/08/2014 at 02:34AM

7
#109 - Mattias Fransson / @azzidoos

09/08/2014 at 04:51PM

7
#110 - Michael Comerford / @MComerford1

09/21/2014 at 01:25AM

7
#111 - Johannes H. / @neVexa

09/22/2014 at 07:49PM

7
#112 - Kyle Nesslein / @knessl

09/25/2014 at 05:25PM

7
#113 - Eric Kever / @codeoverlode

09/29/2014 at 10:47PM

7
#114 - Chris Trotman / @solarnz

10/06/2014 at 01:45AM

7
#115 - Jakob / @jajob

10/07/2014 at 06:43PM

7
#116 - Daniel Pham / @dany_pham

10/11/2014 at 03:53PM

7
#117 - Nicholas Lee-Hone / @NicholasLeeHone

10/14/2014 at 10:57PM

7
#118 - Sikado / @sikado

10/20/2014 at 08:23PM

7
#119 - Andreas Simon / @ndrssmn

10/22/2014 at 07:09PM

7
#120 - Ryan Glassett / @rollsavager

10/23/2014 at 12:39AM