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

379 active golfers, 1092 entries

Leaderboard (lowest score wins):
11
#31 - mevmev / @mevmev8

12/01/2021 at 02:26PM

11
#32 - Marc André Freiheit / @marc_freiheit

12/02/2021 at 09:46AM

11
#33 - Dima Horshenin / @DimaHorshenin

12/02/2021 at 06:37PM

11
#34 - R1nY1x1 / @Y1x1R1n

12/03/2021 at 07:42PM

11
#35 - KowerKoint2010 / @KowerKoint2010

12/12/2021 at 02:59AM

11
#36 - Jianfeng / @Jianfen22425058

12/19/2021 at 07:15AM

11
#37 - Jonghyun Yun / @JonghyunYun

12/19/2021 at 03:29PM

11
#38 - Arya Kumar / @SusSquirrel

12/19/2021 at 03:31PM

11
#39 - sap / @sap38838304

12/24/2021 at 05:35PM

11
#40 - rg thomas / @rgt47

12/24/2021 at 06:50PM

11
#41 - A A A / @37fatos

12/25/2021 at 02:30PM

11
#42 - BowTiedCoin / @BowTiedCoin

12/25/2021 at 10:36PM

11
#43 - Selvaganapathy P / @canabady

12/27/2021 at 03:18AM

11
#44 - Noise Official / @zmunk19

12/30/2021 at 04:37PM

11
#45 - shannon / @ShannonGu1031

01/02/2022 at 07:32AM

11
#46 - Doxly / @Doxly

01/03/2022 at 05:22PM

11
#47 - Humbaba / @humbabu

01/03/2022 at 10:35PM

11
#48 - POSIX / @po6ix

01/07/2022 at 11:42AM

11
#49 - Eric Briand / @eric_briand

01/07/2022 at 07:47PM

11
#50 - roudens / @roudens2

01/08/2022 at 02:56PM

11
#51 - 勉强掩盖 / @NROOhu88PhVQYLT

01/12/2022 at 12:17PM

11
#52 - Duncan / @Duncan31503119

01/12/2022 at 09:44PM

11
#53 - mariavimgolf / @mariavimgolf

01/16/2022 at 01:11PM

11
#54 - Adam Sanghera / @AdamSanghera

01/17/2022 at 09:38PM

11
#55 - Eric Tran / @traneric94

01/18/2022 at 04:25AM

11
#56 - Ítalo Vieira / @italoviieira

01/20/2022 at 03:25AM

11
#57 - dponce / @____d_1_3_g_0

01/23/2022 at 04:01AM

11
#58 - Simon CHEVOLLEAU / @SimonCHEVOLLEA2

01/24/2022 at 06:10PM

11
#59 - m397 / @m39752809546

01/24/2022 at 09:26PM

11
#60 - Ravi S Sinha / @ambidextrousTx

01/25/2022 at 04:08PM