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 9v00619554dd000000000216

Put a newline after every 10 lines in vim

Goal is to put a newline after every 10 lines in vim.

Start file
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
End file
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line

This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line

This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line

This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line

This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line

This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line

This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line

This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line

This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line

This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line
This a sample line

View Diff

10a11
> 
20a22
> 
30a33
> 
40a44
> 
50a55
> 
60a66
> 
70a77
> 
80a88
> 
90a99
> 
100a110
> 

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 111 remaining solutions by signing in and submitting your own entry
#112 Joe Wragg / @joewragg - Score: 46 - 12/08/21 @ 12:43
qq10jO<Esc>kjjq@q@@@@@@@@@@@@@@@@@@<Up>dddo<Esc>:w<CR>o<Esc>:wq<CR>

0 comments


Created by: @r4d1um

112 active golfers, 279 entries

Leaderboard (lowest score wins):
11
#31 - mariavimgolf / @mariavimgolf

01/16/2022 at 01:11PM

11
#32 - Adam Sanghera / @AdamSanghera

01/17/2022 at 09:38PM

11
#33 - Eric Tran / @traneric94

01/18/2022 at 04:25AM

12
#34 - BESSENG A IREH Guy / @guybesseng

11/29/2021 at 11:43AM

12
#35 - logtxt / @logtxt1

12/10/2021 at 10:51AM

12
#36 - Brian Park / @briansypark

01/10/2022 at 09:52PM

12
#37 - e1mnos / @e1mnos

01/17/2022 at 10:29AM

13
#38 - Darius Smaliukas / @daraz999

11/18/2021 at 03:30PM

13
#39 - Jonáš Šerých / @serycjon

11/18/2021 at 07:13PM

13
#40 - TimMcGuire / @mcguire

11/18/2021 at 09:50PM

13
#41 - Smylers / @Smylers2

11/18/2021 at 11:35PM

13
#42 - Sergio / @SergioVl12

11/19/2021 at 05:22AM

13
#43 - WhyIsThisFishInMyEar / @why_ear

11/20/2021 at 10:11AM

13
#44 - Chris Niekel / @vimgolfer534529

11/20/2021 at 10:51AM

13
#45 - thari.eth / @thari_eth

11/20/2021 at 11:28AM

13
#46 - Alexis Praga / @Fitzwy

11/20/2021 at 12:39PM

13
#47 - Snurli / @Snurlipus

11/20/2021 at 05:09PM

13
#48 - Daniel Steinberg / @dstein64

11/21/2021 at 03:37AM

13
#49 - Jean George / @JeanGeo20504212

11/21/2021 at 11:06AM

13
#50 - Theo Gregory / @tjmgregory

11/21/2021 at 06:59PM

13
#51 - Marcin Krajewski / @mkrajewski_

11/22/2021 at 05:12PM

13
#52 - king sized toilet / @ohwowcrazy

11/22/2021 at 08:34PM

13
#53 - MEschenbacher / @eschenbacher_m

11/27/2021 at 07:29PM

13
#54 - mehbark / @mehbark

11/28/2021 at 07:42PM

13
#55 - Michael Herring / @mayoroftuesday

11/30/2021 at 08:51PM

13
#56 - Shrutesh Patil / @patil_shrutesh

12/02/2021 at 08:39PM

13
#57 - Vladimir / @vnovichek

12/03/2021 at 01:18PM

13
#58 - A White Dwarf / @AWhiteDwarf1

12/03/2021 at 09:03PM

13
#59 - Joe Ellis / @joechrisellis

12/05/2021 at 02:55PM

13
#60 - Peter Salvi / @salvipeter

12/06/2021 at 11:18AM