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

550 active golfers, 1648 entries

Leaderboard (lowest score wins):
11
#121 - gugik / @rafgugi

04/27/2022 at 01:57PM

11
#122 - sdfghjk / @sdfghjk88424595

04/27/2022 at 11:39PM

11
#123 - Youssef Magdy / @youssef_magdy29

04/28/2022 at 02:15AM

11
#124 - yancy / @yancy_dong

04/29/2022 at 02:37AM

11
#125 - quemeraisc / @quemeraisc

05/06/2022 at 08:08AM

11
#126 - jofene / @jofene2

05/06/2022 at 01:01PM

11
#127 - Ryan Murphy / @RyanMur92693753

05/07/2022 at 03:14AM

11
#128 - Lanly / @1094916227

05/09/2022 at 03:33AM

11
#129 - russellzhaomao / @russellzhaomao

05/18/2022 at 08:45AM

11
#130 - Pablo Cárdenas / @pablo_cardenasb

05/20/2022 at 05:40AM

11
#131 - Eduardo / @earada

05/21/2022 at 08:27AM

11
#132 - Alex / @AlexanderHeatl2

05/21/2022 at 04:48PM

11
#133 - Irakli Chigvaria / @tchigvaria

05/28/2022 at 05:46AM

11
#134 - redbigyesnoGoThenWhy / @redbigyesno

05/30/2022 at 12:58PM

11
#135 - Martin Bielik / @mabielik

06/01/2022 at 07:33PM

11
#136 - Keaton Brandt / @KeatonTech

06/05/2022 at 12:55AM

11
#137 - Arthur DELORT / @artDelort

06/15/2022 at 03:26PM

11
#138 - Mario / @MarioWolfe

06/19/2022 at 04:06AM

11
#139 - clown / @clownjef

06/26/2022 at 08:35PM

11
#140 - anakojm / @anakojm

07/15/2022 at 12:28AM

11
#141 - loupiot.veloce / @LoupiotVeloce

07/21/2022 at 06:28AM

11
#142 - Sarang Khim / @sarang_khim

07/27/2022 at 09:02AM

11
#143 - z00master / @z00master

08/01/2022 at 06:25PM

11
#144 - 语冰者 / @darcysail

08/18/2022 at 04:45PM

11
#145 - Chen-Hung Wu / @utah12005

09/05/2022 at 03:54AM

11
#146 - linestopaper / @linestopaper

09/14/2022 at 04:18AM

11
#147 - Pieter-Jan Lavaerts / @Pumpkin_Pie_Eat

09/26/2022 at 11:24AM

11
#148 - Nikolaj Sidorenco / @nikolajdws

10/13/2022 at 09:01AM

11
#149 - 刘宏亮 / @AkeyCoy

10/14/2022 at 06:54AM

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

10/18/2022 at 05:51AM