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

515 active golfers, 1543 entries

Leaderboard (lowest score wins):
10
#31 - fraktal / @FraktalRebirth

02/04/2023 at 11:27PM

10
#32 - Ted / @TodorDukov

03/13/2023 at 03:33PM

10
#33 - David Johnston / @nuts4nuts4nuts

03/22/2023 at 09:17PM

10
#34 - Ward Quaghebeur / @WardQuaghebeur

05/26/2023 at 01:22PM

10
#35 - Godek Dominik / @dominik27182818

06/26/2023 at 10:09AM

10
#36 - Eduardo Cassiano 🍥 / @compiledge

09/30/2023 at 08:15PM

10
#37 - Markus Ditlev Olsen / @DitlevOlsen

09/30/2023 at 09:11PM

10
#38 - Sergej Karavajnij / @basyanya_sk

11/02/2023 at 07:52PM

10
#39 - FilipRazek / @FilipRazek

11/11/2023 at 10:29AM

10
#40 - Remus Dalrymple / @bornintheflames

12/11/2023 at 11:59PM

10
#41 - Michael Schneider / @m1-s

02/18/2024 at 07:13PM

11
#42 - Jon Krause / @jkrause314

11/21/2021 at 06:17AM

11
#43 - Kha Nguyen / @__ngtrongkha

11/25/2021 at 01:34AM

11
#44 - Gerrit Prößl / @pearisgreen

11/27/2021 at 04:27PM

11
#45 - Petro Тrouq / @zulolosi

11/29/2021 at 03:15PM

11
#46 - mevmev / @mevmev8

12/01/2021 at 02:26PM

11
#47 - Marc André Freiheit / @marc_freiheit

12/02/2021 at 09:46AM

11
#48 - Dima Horshenin / @DimaHorshenin

12/02/2021 at 06:37PM

11
#49 - R1nY1x1 / @Y1x1R1n

12/03/2021 at 07:42PM

11
#50 - KowerKoint2010 / @KowerKoint2010

12/12/2021 at 02:59AM

11
#51 - Jianfeng / @Jianfen22425058

12/19/2021 at 07:15AM

11
#52 - Jonghyun Yun / @JonghyunYun

12/19/2021 at 03:29PM

11
#53 - Arya Kumar / @SusSquirrel

12/19/2021 at 03:31PM

11
#54 - sap / @sap38838304

12/24/2021 at 05:35PM

11
#55 - rg thomas / @rgt47

12/24/2021 at 06:50PM

11
#56 - A A A / @37fatos

12/25/2021 at 02:30PM

11
#57 - BowTiedCoin / @BowTiedCoin

12/25/2021 at 10:36PM

11
#58 - Selvaganapathy P / @canabady

12/27/2021 at 03:18AM

11
#59 - Noise Official / @zmunk19

12/30/2021 at 04:37PM

11
#60 - shannon / @ShannonGu1031

01/02/2022 at 07:32AM