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
#31 - 土ヤ / @ttsuchiya

06/19/2014 at 06:56AM

7
#32 - Tom McCluskey / @TomMcCluskey

06/20/2014 at 05:35AM

7
#33 - Zapata / @Incredible_JFP

06/20/2014 at 09:08AM

7
#34 - Kamil Burzynski / @Nopik

06/20/2014 at 11:08AM

7
#35 - ahumph / @ahumph

06/20/2014 at 11:39AM

7
#36 - Timothy Chong / @timothychongg

06/20/2014 at 06:00PM

7
#37 - Miguel R. Rubinos / @mrrubinos

06/21/2014 at 08:16AM

7
#38 - retired account / @retired10072015

06/21/2014 at 04:52PM

7
#39 - Chris Putnam Nine / @chrisputnam9

06/21/2014 at 11:19PM

7
#40 - deadghost / @deadghosttt

06/22/2014 at 03:57AM

7
#41 - buz / @buzbone

06/22/2014 at 07:51PM

7
#42 - Matt Carey / @matthewccarey

06/22/2014 at 08:40PM

7
#43 - Trevor Green / @trumpi

06/23/2014 at 05:17PM

7
#44 - Daniel Blancas / @edblancas

06/23/2014 at 06:12PM

7
#45 - blabla / @pal_crystal

06/23/2014 at 10:09PM

7
#46 - Dawn Woodard / @kiarabird42

06/23/2014 at 10:51PM

7
#47 - Jay Phillips / @rocketman8473

06/23/2014 at 10:52PM

7
#48 - John Meisner / @jmeisned

06/24/2014 at 03:09AM

7
#49 - Javier Blanco / @jbgutierrez

06/24/2014 at 11:06AM

7
#50 - Akash Agrawal / @akshagrwl

06/24/2014 at 12:25PM

7
#51 - Francisco García / @SystematicFrank

06/24/2014 at 01:05PM

7
#52 - darookee / @darookee

06/25/2014 at 01:29PM

7
#53 - Filip Szczepanski / @FreeFull

06/25/2014 at 04:50PM

7
#54 - Tom Gilligan / @sargegood

06/26/2014 at 10:57PM

7
#55 - Partial SHA1 hash / @25fcag9e

06/26/2014 at 10:58PM

7
#56 - Caek / @Caek_

06/27/2014 at 04:14AM

7
#57 - trotha01 / @trotha01

06/27/2014 at 06:12PM

7
#58 - Paulo Schneider / @pschneider

06/27/2014 at 07:09PM

7
#59 - Deniz Oktay / @cloud_boy

06/27/2014 at 10:53PM

7
#60 - jackliusr / @jackliusr

06/28/2014 at 01:04PM