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

303 active golfers, 859 entries

Leaderboard (lowest score wins):
13
#151 - deusthe / @deusthe91

12/16/2021 at 05:26PM

13
#152 - Robert Hendrickson / @RobertH72200659

12/18/2021 at 06:03PM

13
#153 - Alira / @Alira_1

12/21/2021 at 04:39PM

13
#154 - Gim Volfer / @GimVolfer

12/22/2021 at 01:31PM

13
#155 - 0xdrowsy / @0xdrowsy

12/26/2021 at 09:07AM

13
#156 - Nougatine Naja / @NougatineNaja

12/28/2021 at 04:37PM

13
#157 - Emiliano Pérez / @emiperez95

12/30/2021 at 12:16AM

13
#158 - Avery Carty / @AveryCarty

12/30/2021 at 04:17AM

13
#159 - Liu ko / @liukonst

12/31/2021 at 01:28PM

13
#160 - Manas / @weirdsmiley_

01/03/2022 at 10:25PM

13
#161 - 徐宏宇 / @ryanhsu06190619

01/08/2022 at 04:20AM

13
#162 - Qarthik / @qrthik

01/09/2022 at 12:23PM

13
#163 - Victor Heid 🛸 / @victorheid

01/11/2022 at 06:25PM

13
#164 - Matthew Karcher / @mattrfk

01/12/2022 at 04:07AM

13
#165 - jessepye / @jessepye

01/13/2022 at 09:20PM

13
#166 - Ken / @kenc_

01/14/2022 at 06:23AM

13
#167 - Champii Akronym / @ChampiiPwet

01/15/2022 at 02:06PM

13
#168 - dg_ / @l_o_s_o_s

01/16/2022 at 08:07PM

13
#169 - sean.yang / @seanyangc

01/18/2022 at 03:10PM

13
#170 - Graeme Smith / @InstaGraeme

01/18/2022 at 11:20PM

13
#171 - Gulpy / @gulpgaming

01/19/2022 at 12:53PM

13
#172 - Erik Öjebo / @erikojebo

01/22/2022 at 09:17PM

13
#173 - vian / @cocatrip

01/23/2022 at 05:15PM

13
#174 - Yochem van Rosmalen / @yoch3m

01/28/2022 at 08:52PM

13
#175 - Gunter Kluge / @KlugeGunter

02/03/2022 at 10:27AM

13
#176 - stwice / @stwice

02/03/2022 at 03:31PM

13
#177 - A Random Vimgolfer / @AVimgolfer

02/04/2022 at 05:20AM

13
#178 - Paweł Tobiszewski / @tobikster

02/04/2022 at 08:21AM

13
#179 - Raul / @raulfpl

02/04/2022 at 11:58PM

13
#180 - Ivo Blöchliger / @aigledesalpes

02/05/2022 at 07:20PM