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

426 active golfers, 1239 entries

Leaderboard (lowest score wins):
16
#361 - izbr / @IBRice101

11/20/2021 at 04:59PM

16
#362 - Regina Liu / @reginaliu20

12/08/2021 at 03:09AM

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

12/23/2021 at 09:51AM

16
#364 - Aaron / @aaronvickers_

01/13/2022 at 11:46AM

16
#365 - TT / @TT_Minato

01/24/2022 at 05:58AM

16
#366 - Michael Carey / @Mick_Carey

01/28/2022 at 11:50AM

16
#367 - sfsbeaetwafwear / @sfsbeaetwafwear

01/29/2022 at 03:34PM

16
#368 - Arif Ardiansyah / @ArsanOfficial

02/21/2022 at 11:24AM

16
#369 - Alex Jones / @HiImAlexJ

02/25/2022 at 10:20AM

16
#370 - Tim Gent / @TimmehGent

02/26/2022 at 11:48PM

16
#371 - anonymouse / @anonymo65837183

03/10/2022 at 02:11AM

16
#372 - 서보현 / @ktseo41

04/02/2022 at 12:22PM

16
#373 - Alvaro Neto / @AlvaroN15101725

05/08/2022 at 03:32PM

16
#374 - mark nichols / @zanshin

05/12/2022 at 12:51PM

16
#375 - Saatvik / @saatvik007

10/07/2022 at 12:19AM

16
#376 - Henrique Zerbini Junqueira de Assis / @ZerbiniAssis

10/23/2022 at 10:04PM

16
#377 - 三餐茶葉🥚 | 🇯🇵🇺🇸 / @mzbcs

10/26/2022 at 02:33PM

16
#378 - Benjamin / @BenjaminBashar

11/19/2022 at 10:56AM

16
#379 - Tolp En / @en_tolp

11/22/2022 at 06:45PM

16
#380 - Daniel Nettelfield / @DNIIBOY

12/11/2022 at 09:39PM

17
#381 - ルシュメ / @arupakanohito

12/12/2021 at 10:13AM

17
#382 - Joshua Meyer / @joshengineer9

01/10/2022 at 02:54AM

17
#383 - 윤승후 / @yunseunghu7

03/04/2022 at 05:40AM

17
#384 - Bas / @m1tix

09/23/2022 at 03:30PM

18
#385 - yxke / @_yxke

12/16/2021 at 02:45PM

18
#386 - Maorun / @Maorun11

12/17/2021 at 04:04PM

18
#387 - Youmu / @___Youmu___

02/08/2022 at 12:30PM

18
#388 - Andreas Burg / @der_abu

03/05/2022 at 08:05AM

18
#389 - Auri Iodide / @auri_iodide

03/06/2022 at 12:08AM

18
#390 - Even Wei / @evenwei59

03/17/2022 at 07:28AM