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 127 remaining solutions by signing in and submitting your own entry
#128 Joe Wragg / @joewragg - Score: 46 - 12/08/21 @ 12:43
qq10jO<Esc>kjjq@q@@@@@@@@@@@@@@@@@@<Up>dddo<Esc>:w<CR>o<Esc>:wq<CR>

0 comments


Created by: @r4d1um

128 active golfers, 348 entries

Leaderboard (lowest score wins):
13
#61 - king sized toilet / @ohwowcrazy

11/22/2021 at 08:34PM

13
#62 - MEschenbacher / @eschenbacher_m

11/27/2021 at 07:29PM

13
#63 - mehbark / @mehbark

11/28/2021 at 07:42PM

13
#64 - Michael Herring / @mayoroftuesday

11/30/2021 at 08:51PM

13
#65 - Shrutesh Patil / @patil_shrutesh

12/02/2021 at 08:39PM

13
#66 - Vladimir / @vnovichek

12/03/2021 at 01:18PM

13
#67 - A White Dwarf / @AWhiteDwarf1

12/03/2021 at 09:03PM

13
#68 - Joe Ellis / @joechrisellis

12/05/2021 at 02:55PM

13
#69 - Peter Salvi / @salvipeter

12/06/2021 at 11:18AM

13
#70 - Leander Hendrikx / @leanderhendrikx

12/06/2021 at 02:07PM

13
#71 - José Medrano / @happylilmexican

12/06/2021 at 07:36PM

13
#72 - Christopher Williams / @chrstphrsnw

12/06/2021 at 10:19PM

13
#73 - wandering sol / @SunReyE

12/08/2021 at 12:23AM

13
#74 - Peter Ly / @PeterLy71

12/12/2021 at 02:00PM

13
#75 - ±copy / @murdiler

12/14/2021 at 09:19AM

13
#76 - Elizabeth / @sprinkles418

12/14/2021 at 04:27PM

13
#77 - deusthe / @deusthe91

12/16/2021 at 05:26PM

13
#78 - Robert Hendrickson / @RobertH72200659

12/18/2021 at 06:03PM

13
#79 - Alira / @Alira_1

12/21/2021 at 04:39PM

13
#80 - Gim Volfer / @GimVolfer

12/22/2021 at 01:31PM

13
#81 - 0xdrowsy / @0xdrowsy

12/26/2021 at 09:07AM

13
#82 - Nougatine Naja / @NougatineNaja

12/28/2021 at 04:37PM

13
#83 - Emiliano Pérez / @emiperez95

12/30/2021 at 12:16AM

13
#84 - Avery Carty / @AveryCarty

12/30/2021 at 04:17AM

13
#85 - Liu ko / @liukonst

12/31/2021 at 01:28PM

13
#86 - Manas / @weirdsmiley_

01/03/2022 at 10:25PM

13
#87 - 徐宏宇 / @ryanhsu06190619

01/08/2022 at 04:20AM

13
#88 - Qarthik / @qrthik

01/09/2022 at 12:23PM

13
#89 - Victor Heid 🛸 / @victorheid

01/11/2022 at 06:25PM

13
#90 - Matthew Karcher / @mattrfk

01/12/2022 at 04:07AM