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
#61 - Ian Laird / @irlaird

06/29/2014 at 09:20PM

7
#62 - Alexey Permyakov / @AlexeyPermyakov

06/29/2014 at 09:52PM

7
#63 - Zack Brown / @ztbrown

06/30/2014 at 06:13PM

7
#64 - Jonathan Skeate / @jskeate

06/30/2014 at 09:15PM

7
#65 - Bradley Tse / @bradleytse

07/01/2014 at 03:34PM

7
#66 - Théophile Wallez / @twallez

07/02/2014 at 09:36AM

7
#67 - Alexandre / @Hikaru_

07/03/2014 at 02:35PM

7
#68 - Kelsey Ando / @d_chan42

07/03/2014 at 08:20PM

7
#69 - Phil Munt / @PhilMunt

07/04/2014 at 06:12AM

7
#70 - Vito / @GodFather

07/05/2014 at 05:01AM

7
#71 - James Scriven / @JamesDScriven

07/05/2014 at 11:00PM

7
#72 - Nico Lehmann / @nilehmann

07/06/2014 at 01:14AM

7
#73 - Laurent Indermühle / @HoniixCH

07/06/2014 at 12:10PM

7
#74 - Lasse Dalegaard / @ldalegaard

07/06/2014 at 08:53PM

7
#75 - Dan Keast / @DanKeast

07/07/2014 at 03:15PM

7
#76 - iamevn / @iamevn

07/08/2014 at 05:08PM

7
#77 - Alexey Fedorov / @waterlink000

07/09/2014 at 03:07PM

7
#78 - Thomas Lacroix / @ThomasLacroix

07/09/2014 at 07:01PM

7
#79 - Jonas K. / @geratheon

07/10/2014 at 09:04AM

7
#80 - Paul Rodgers / @oursjaune

07/13/2014 at 02:20PM

7
#81 - sergio filho / @sergio3010

07/15/2014 at 02:49AM

7
#82 - Siddhanathan S. / @siddhanathan

07/15/2014 at 06:17PM

7
#83 - RiccardoSven Risuleo / @riccardosven

07/15/2014 at 08:00PM

7
#84 - Marco Biasini / @biasmv

07/17/2014 at 07:57PM

7
#85 - Stanislav Nikolov / @valsinatss

07/17/2014 at 08:23PM

7
#86 - Waylon Cude / @waylon531

07/18/2014 at 03:11PM

7
#87 - Pete Johns / @johnsyweb

07/20/2014 at 01:50AM

7
#88 - Birkir Ólafsson / @Birkirlafsson

07/21/2014 at 05:25PM

7
#89 - Dominik Szerszeń / @DominikSze

07/22/2014 at 01:42PM

7
#90 - Yoonho Lee / @ID_einet89

07/23/2014 at 10:00AM