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

555 active golfers, 1656 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

10
#42 - sodawithbubbles / @sodawithbubbles

05/30/2024 at 06:55AM

10
#43 - Don'tBeAlarmed / @DontBeAlarmed

06/05/2024 at 05:50PM

10
#44 - Peppa Pig / @PeppaPi95550250

06/11/2024 at 02:35AM

10
#45 - Gabriel-Dropout / @Gabriel-Dropout

06/22/2024 at 02:53PM

10
#46 - djheidihoe / @djheidihoe1

07/02/2024 at 09:13PM

11
#47 - Jon Krause / @jkrause314

11/21/2021 at 06:17AM

11
#48 - Kha Nguyen / @__ngtrongkha

11/25/2021 at 01:34AM

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

11/27/2021 at 04:27PM

11
#50 - Petro Тrouq / @zulolosi

11/29/2021 at 03:15PM

11
#51 - mevmev / @mevmev8

12/01/2021 at 02:26PM

11
#52 - Marc André Freiheit / @marc_freiheit

12/02/2021 at 09:46AM

11
#53 - Dima Horshenin / @DimaHorshenin

12/02/2021 at 06:37PM

11
#54 - R1nY1x1 / @Y1x1R1n

12/03/2021 at 07:42PM

11
#55 - KowerKoint2010 / @KowerKoint2010

12/12/2021 at 02:59AM

11
#56 - Jianfeng / @Jianfen22425058

12/19/2021 at 07:15AM

11
#57 - Jonghyun Yun / @JonghyunYun

12/19/2021 at 03:29PM

11
#58 - Arya Kumar / @SusSquirrel

12/19/2021 at 03:31PM

11
#59 - sap / @sap38838304

12/24/2021 at 05:35PM

11
#60 - rg thomas / @rgt47

12/24/2021 at 06:50PM