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

404 active golfers, 1171 entries

Leaderboard (lowest score wins):
11
#121 - clown / @clownjef

06/26/2022 at 08:35PM

11
#122 - anakojm / @anakojm

07/15/2022 at 12:28AM

11
#123 - loupiot.veloce / @LoupiotVeloce

07/21/2022 at 06:28AM

11
#124 - Sarang Khim / @sarang_khim

07/27/2022 at 09:02AM

11
#125 - z00master / @z00master

08/01/2022 at 06:25PM

11
#126 - 语冰者 / @darcysail

08/18/2022 at 04:45PM

11
#127 - Chen-Hung Wu / @utah12005

09/05/2022 at 03:54AM

11
#128 - linestopaper / @linestopaper

09/14/2022 at 04:18AM

11
#129 - Pieter-Jan Lavaerts / @Pumpkin_Pie_Eat

09/26/2022 at 11:24AM

11
#130 - Nikolaj Sidorenco / @nikolajdws

10/13/2022 at 09:01AM

11
#131 - 刘宏亮 / @AkeyCoy

10/14/2022 at 06:54AM

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

10/18/2022 at 05:51AM

11
#133 - Himanshu Tank / @himanshutank75

10/19/2022 at 07:11PM

11
#134 - Laughing Cavalier / @jovial_cavalier

10/21/2022 at 08:13PM

11
#135 - Daniel Paschke / @pasch_dan

10/24/2022 at 10:53AM

11
#136 - ._. / @Katharsic

11/20/2022 at 07:14PM

11
#137 - Dank City / @ddankcity

12/05/2022 at 04:45PM

12
#138 - BESSENG A IREH Guy / @guybesseng

11/29/2021 at 11:43AM

12
#139 - logtxt / @logtxt1

12/10/2021 at 10:51AM

12
#140 - Brian Park / @briansypark

01/10/2022 at 09:52PM

12
#141 - e1mnos / @e1mnos

01/17/2022 at 10:29AM

12
#142 - Blake Tereau / @BlakeTereau

01/27/2022 at 05:05PM

12
#143 - soundscope / @__soundscope__

02/11/2022 at 02:01AM

12
#144 - Michael Potter / @MicLeviPotter

02/12/2022 at 02:53AM

12
#145 - Ofer Yehuda / @OferYehuda

02/24/2022 at 03:52PM

12
#146 - aalegrias / @aalegrias

03/25/2022 at 09:18PM

12
#147 - ylv / @ylv_io

04/01/2022 at 10:45PM

12
#148 - Ansuman Bardalai / @abardalai

04/11/2022 at 07:40AM

12
#149 - Erisian Aspect / @ErisianAspect

05/23/2022 at 09:20PM

12
#150 - YaruCar / @yaru_car

05/24/2022 at 07:08AM