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
#91 - John Xu / @xzzhiao

04/06/2022 at 01:31AM

11
#92 - Hermit McDermot / @hermit_mcdermot

04/06/2022 at 11:45AM

11
#93 - すちぃ / @champemunasong

04/10/2022 at 02:22AM

11
#94 - James Duffy / @jduffy3

04/11/2022 at 02:52AM

11
#95 - sapir malka / @sapir5522

04/11/2022 at 12:06PM

11
#96 - Dominc Zimmer / @DomincZimmer

04/12/2022 at 08:47AM

11
#97 - Andreas Aumann / @andreasaumann

04/16/2022 at 02:17PM

11
#98 - ff df / @ffdf93207177

04/18/2022 at 02:33AM

11
#99 - Pierre-Olivier Proulx / @PierreO57066096

04/19/2022 at 12:48AM

11
#100 - Tom11w / @Tom11Wh

04/24/2022 at 08:03AM

11
#101 - gugik / @rafgugi

04/27/2022 at 01:57PM

11
#102 - sdfghjk / @sdfghjk88424595

04/27/2022 at 11:39PM

11
#103 - Youssef Magdy / @youssef_magdy29

04/28/2022 at 02:15AM

11
#104 - yancy / @yancy_dong

04/29/2022 at 02:37AM

11
#105 - quemeraisc / @quemeraisc

05/06/2022 at 08:08AM

11
#106 - jofene / @jofene2

05/06/2022 at 01:01PM

11
#107 - Ryan Murphy / @RyanMur92693753

05/07/2022 at 03:14AM

11
#108 - Lanly / @1094916227

05/09/2022 at 03:33AM

11
#109 - russellzhaomao / @russellzhaomao

05/18/2022 at 08:45AM

11
#110 - Pablo Cárdenas / @pablo_cardenasb

05/20/2022 at 05:40AM

11
#111 - Eduardo / @earada

05/21/2022 at 08:27AM

11
#112 - Alex / @AlexanderHeatl2

05/21/2022 at 04:48PM

11
#113 - Irakli Chigvaria / @tchigvaria

05/28/2022 at 05:46AM

11
#114 - redbigyesnoGoThenWhy / @redbigyesno

05/30/2022 at 12:58PM

11
#115 - Martin Bielik / @mabielik

06/01/2022 at 07:33PM

11
#116 - Keaton Brandt / @KeatonTech

06/05/2022 at 12:55AM

11
#117 - Arthur DELORT / @artDelort

06/15/2022 at 03:26PM

11
#118 - Mario / @MarioWolfe

06/19/2022 at 04:06AM

11
#119 - clown / @clownjef

06/26/2022 at 08:35PM

11
#120 - anakojm / @anakojm

07/15/2022 at 12:28AM