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 127 remaining solutions by signing in and submitting your own entry
#128 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

128 active golfers, 348 entries

Leaderboard (lowest score wins):
10
#1 - $HA-|| / @s_k0731

11/29/2021 at 05:45PM

10
#2 - John Braxler / @braxler

12/02/2021 at 03:33PM

10
#3 - garry quested / @GQuested

12/10/2021 at 04:46PM

10
#4 - Яков / @Higluos

12/28/2021 at 08:44PM

10
#5 - Sammit / @somemeatjain

01/22/2022 at 02:19PM

10
#6 - vimbroesel / @vimbroesel

01/23/2022 at 01:14PM

10
#7 - mvimgolf / @vimgolfvimgolf

01/23/2022 at 07:14PM

11
#8 - Jon Krause / @jkrause314

11/21/2021 at 06:17AM

11
#9 - Trong Kha Nguyen / @__ngtrongkha

11/25/2021 at 01:34AM

11
#10 - Gerrit Prößl / @pearisgreen

11/27/2021 at 04:27PM

11
#11 - Petro Тrouq / @zulolosi

11/29/2021 at 03:15PM

11
#12 - mevmev / @mevmev8

12/01/2021 at 02:26PM

11
#13 - Marc André Freiheit / @marc_freiheit

12/02/2021 at 09:46AM

11
#14 - Dima Horshenin / @DimaHorshenin

12/02/2021 at 06:37PM

11
#15 - R1nY1x1 / @Y1x1R1n

12/03/2021 at 07:42PM

11
#16 - KowerKoint2010 / @KowerKoint2010

12/12/2021 at 02:59AM

11
#17 - Jianfeng / @Jianfen22425058

12/19/2021 at 07:15AM

11
#18 - Jonghyun Yun / @JonghyunYun

12/19/2021 at 03:29PM

11
#19 - Arya Kumar / @SusSquirrel

12/19/2021 at 03:31PM

11
#20 - sap / @sap38838304

12/24/2021 at 05:35PM

11
#21 - rg thomas / @rgt47

12/24/2021 at 06:50PM

11
#22 - A A A / @37fatos

12/25/2021 at 02:30PM

11
#23 - BowTiedCoin / @BowTiedCoin

12/25/2021 at 10:36PM

11
#24 - Selvaganapathy P / @canabady

12/27/2021 at 03:18AM

11
#25 - Noise Official / @zmunk19

12/30/2021 at 04:37PM

11
#26 - shannon / @ShannonGu1031

01/02/2022 at 07:32AM

11
#27 - Doxly / @Doxly

01/03/2022 at 05:22PM

11
#28 - Humbaba / @humbabu

01/03/2022 at 10:35PM

11
#29 - POSIX / @po6ix

01/07/2022 at 11:42AM

11
#30 - Eric Briand / @eric_briand

01/07/2022 at 07:47PM