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

399 active golfers, 1157 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

10
#20 - Henrique Malheiro / @rike09

05/19/2022 at 10:43AM

10
#21 - Prabhat Ranjan / @prabhatr27

06/04/2022 at 05:27PM

10
#22 - Zeppel / @zeppelsoftware

06/06/2022 at 10:44PM

10
#23 - Хью Джолли / @DzolliH

06/15/2022 at 05:51AM

10
#24 - Александр Черенков / @AleksandrCeren3

07/24/2022 at 03:14AM

10
#25 - Janzen / @__Coos

09/13/2022 at 06:57AM

10
#26 - Santosh Latpate / @sblatpate

09/25/2022 at 10:16PM

10
#27 - Priyanka Vissamsetty Rao / @priyankavrao97

10/10/2022 at 05:16PM

10
#28 - Topvimgolf Score / @topvimgolfscore

10/15/2022 at 10:30AM

11
#29 - Jon Krause / @jkrause314

11/21/2021 at 06:17AM

11
#30 - Kha Nguyen / @__ngtrongkha

11/25/2021 at 01:34AM