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

517 active golfers, 1550 entries

Leaderboard (lowest score wins):
11
#121 - jofene / @jofene2

05/06/2022 at 01:01PM

11
#122 - Ryan Murphy / @RyanMur92693753

05/07/2022 at 03:14AM

11
#123 - Lanly / @1094916227

05/09/2022 at 03:33AM

11
#124 - russellzhaomao / @russellzhaomao

05/18/2022 at 08:45AM

11
#125 - Pablo Cárdenas / @pablo_cardenasb

05/20/2022 at 05:40AM

11
#126 - Eduardo / @earada

05/21/2022 at 08:27AM

11
#127 - Alex / @AlexanderHeatl2

05/21/2022 at 04:48PM

11
#128 - Irakli Chigvaria / @tchigvaria

05/28/2022 at 05:46AM

11
#129 - redbigyesnoGoThenWhy / @redbigyesno

05/30/2022 at 12:58PM

11
#130 - Martin Bielik / @mabielik

06/01/2022 at 07:33PM

11
#131 - Keaton Brandt / @KeatonTech

06/05/2022 at 12:55AM

11
#132 - Arthur DELORT / @artDelort

06/15/2022 at 03:26PM

11
#133 - Mario / @MarioWolfe

06/19/2022 at 04:06AM

11
#134 - clown / @clownjef

06/26/2022 at 08:35PM

11
#135 - anakojm / @anakojm

07/15/2022 at 12:28AM

11
#136 - loupiot.veloce / @LoupiotVeloce

07/21/2022 at 06:28AM

11
#137 - Sarang Khim / @sarang_khim

07/27/2022 at 09:02AM

11
#138 - z00master / @z00master

08/01/2022 at 06:25PM

11
#139 - 语冰者 / @darcysail

08/18/2022 at 04:45PM

11
#140 - Chen-Hung Wu / @utah12005

09/05/2022 at 03:54AM

11
#141 - linestopaper / @linestopaper

09/14/2022 at 04:18AM

11
#142 - Pieter-Jan Lavaerts / @Pumpkin_Pie_Eat

09/26/2022 at 11:24AM

11
#143 - Nikolaj Sidorenco / @nikolajdws

10/13/2022 at 09:01AM

11
#144 - 刘宏亮 / @AkeyCoy

10/14/2022 at 06:54AM

11
#145 - Илья Ермолин / @ErmolinIl

10/18/2022 at 05:51AM

11
#146 - Himanshu Tank / @himanshutank75

10/19/2022 at 07:11PM

11
#147 - Laughing Cavalier / @jovial_cavalier

10/21/2022 at 08:13PM

11
#148 - Daniel Paschke / @pasch_dan

10/24/2022 at 10:53AM

11
#149 - ._. / @Katharsic

11/20/2022 at 07:14PM

11
#150 - Dank City / @ddankcity

12/05/2022 at 04:45PM