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):
13
#181 - A White Dwarf / @AWhiteDwarf1

12/03/2021 at 09:03PM

13
#182 - Joe Ellis / @joechrisellis

12/05/2021 at 02:55PM

13
#183 - Peter Salvi / @salvipeter

12/06/2021 at 11:18AM

13
#184 - Leander Hendrikx / @leanderhendrikx

12/06/2021 at 02:07PM

13
#185 - José Medrano / @happylilmexican

12/06/2021 at 07:36PM

13
#186 - Christopher Williams / @chrstphrsnw

12/06/2021 at 10:19PM

13
#187 - wandering sol / @SunReyE

12/08/2021 at 12:23AM

13
#188 - Peter Ly / @PeterLy71

12/12/2021 at 02:00PM

13
#189 - ±copy / @murdiler

12/14/2021 at 09:19AM

13
#190 - Elizabeth / @sprinkles418

12/14/2021 at 04:27PM

13
#191 - deusthe / @deusthe91

12/16/2021 at 05:26PM

13
#192 - Robert Hendrickson / @RobertH72200659

12/18/2021 at 06:03PM

13
#193 - Alira / @Alira_1

12/21/2021 at 04:39PM

13
#194 - Gim Volfer / @GimVolfer

12/22/2021 at 01:31PM

13
#195 - 時空裂縫 / @0xdcbf

12/26/2021 at 09:07AM

13
#196 - Nougatine Naja / @NougatineNaja

12/28/2021 at 04:37PM

13
#197 - Emiliano Pérez / @emiperez95

12/30/2021 at 12:16AM

13
#198 - Avery Carty / @AveryCarty

12/30/2021 at 04:17AM

13
#199 - Liu ko / @liukonst

12/31/2021 at 01:28PM

13
#200 - Manas / @weirdsmiley_

01/03/2022 at 10:25PM

13
#201 - 徐宏宇 / @ryanhsu06190619

01/08/2022 at 04:20AM

13
#202 - Qarthik / @qrthik

01/09/2022 at 12:23PM

13
#203 - Victor Heid 🛸 / @victorheid

01/11/2022 at 06:25PM

13
#204 - Matthew Karcher / @mattrfk

01/12/2022 at 04:07AM

13
#205 - jessepye / @jessepye

01/13/2022 at 09:20PM

13
#206 - Ken / @kenc_

01/14/2022 at 06:23AM

13
#207 - Champii Akronym / @ChampiiPwet

01/15/2022 at 02:06PM

13
#208 - dg_ / @l_o_s_o_s

01/16/2022 at 08:07PM

13
#209 - sean.yang / @seanyangc

01/18/2022 at 03:10PM

13
#210 - Graeme Smith / @InstaGraeme

01/18/2022 at 11:20PM