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 290 remaining solutions by signing in and submitting your own entry
#291 oleg / @oleg12573505 - Score: 155 - 01/29/22 @ 14:07
Vjjjjjjjjj<Esc><Esc>o<Esc>jVjjjjjjjjjjk<Esc><Esc>o<Esc>jVjjjjjjjjj<Esc><Esc>o<Esc>V<Esc><Esc>jVjjjjjjjjjjjkk<Esc><Esc>o<Esc>jVjjjjjjjjjjjjjkkkk<Esc><Esc>o<Esc>jV10j<Esc><Esc>O<Esc>jV10j<Esc><Esc>O<Esc>jV10j<Esc><Esc>O<Esc>jV10j<Esc><Esc>O<Esc>jVjjjjjjjjjjjjjjjjj<Esc><Esc>o<CR><Esc>:wq<CR>

0 comments


Created by: @r4d1um

291 active golfers, 816 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

10
#8 - blub blub / @xyDZdMNGzWLT

01/31/2022 at 07:01PM

10
#9 - Sean Hwang / @SeanHwangt

02/02/2022 at 06:32PM

10
#10 - asd bsd / @asdbsd15569049

02/13/2022 at 06:38PM

10
#11 - nd183 / @nd1832

02/19/2022 at 09:37AM

10
#12 - Pawel Wenda / @pwlwnd

02/23/2022 at 08:40PM

10
#13 - 晓峰/Xiaofeng / @xfun68

02/24/2022 at 09:46AM

10
#14 - 子豪 王 / @zihaowa73544867

02/28/2022 at 08:52PM

10
#15 - Brad Boggs / @boggsbradley

03/01/2022 at 03:41PM

10
#16 - Pedro Minicz / @pedrominicz

03/25/2022 at 11:08PM

10
#17 - jovyn / @jovyn_

05/06/2022 at 04:38AM

10
#18 - Marc Jethro Avila / @maje_avila

05/07/2022 at 04:40PM

10
#19 - funky_koval / @iam_funky_koval

05/15/2022 at 04:03PM

11
#20 - Jon Krause / @jkrause314

11/21/2021 at 06:17AM

11
#21 - Kha Nguyen / @__ngtrongkha

11/25/2021 at 01:34AM

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

11/27/2021 at 04:27PM

11
#23 - Petro Тrouq / @zulolosi

11/29/2021 at 03:15PM

11
#24 - mevmev / @mevmev8

12/01/2021 at 02:26PM

11
#25 - Marc André Freiheit / @marc_freiheit

12/02/2021 at 09:46AM

11
#26 - Dima Horshenin / @DimaHorshenin

12/02/2021 at 06:37PM

11
#27 - R1nY1x1 / @Y1x1R1n

12/03/2021 at 07:42PM

11
#28 - KowerKoint2010 / @KowerKoint2010

12/12/2021 at 02:59AM

11
#29 - Jianfeng / @Jianfen22425058

12/19/2021 at 07:15AM

11
#30 - Jonghyun Yun / @JonghyunYun

12/19/2021 at 03:29PM