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):
14
#91 - TW / @tangw

11/22/2021 at 08:07PM

14
#92 - John Wohlfert / @jlwohlfert

11/26/2021 at 09:50PM

14
#93 - Kiran / @kiranprasadk

11/28/2021 at 11:54AM

14
#94 - Pablo R. Dinella / @pablordinella

11/30/2021 at 09:33PM

14
#95 - Vegard Henriksen / @MrVegard

12/04/2021 at 12:11PM

14
#96 - John Doe / @JohnDoe75830353

12/25/2021 at 10:32PM

15
#97 - Digital Dog / @the_digital_dog

01/05/2022 at 09:23AM

15
#98 - rappenstein2 / @rappenstein2

01/11/2022 at 05:00PM

15
#99 - Bharath Hegde / @BharathIHegdeI

01/18/2022 at 03:09PM

15
#100 - Graeme Smith / @InstaGraeme

01/18/2022 at 07:45PM

16
#101 - jackliusr / @jackliusr

11/19/2021 at 01:39AM

16
#102 - izbr / @IBRice101

11/20/2021 at 04:59PM

16
#103 - Regina Liu / @reginaliu20

12/08/2021 at 03:09AM

16
#104 - MyStats: The 7 Habits / @7Mystats

12/23/2021 at 09:51AM

16
#105 - Aaron / @aaronvickers_

01/13/2022 at 11:46AM

17
#106 - ルシュメ / @arupakanohito

12/12/2021 at 10:13AM

17
#107 - Joshua Meyer / @joshengineer9

01/10/2022 at 02:54AM

18
#108 - yxke / @_yxke

12/16/2021 at 02:45PM

18
#109 - Maorun / @Maorun11

12/17/2021 at 04:04PM

20
#110 - rakshith 🦄 / @rakshithbellare

12/28/2021 at 10:07AM

33
#111 - ROBOTSTOP / @ROBOTST0P

12/24/2021 at 02:58AM

46
#112 - Joe Wragg / @joewragg

12/08/2021 at 12:43PM