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
#181 - Jonas Gollenz / @bleeding_sledge

02/06/2022 at 02:03PM

13
#182 - Fabian Becker 🇩🇪 / @geekproject

02/07/2022 at 11:09PM

13
#183 - D. 👋 / @DCT_cpp

02/09/2022 at 05:41PM

13
#184 - pelp / @Dreadot

02/13/2022 at 01:17PM

13
#185 - shak / @GSqwm5E7oe

02/15/2022 at 04:14PM

13
#186 - Carlos Gracia / @Elrauk

02/16/2022 at 05:21PM

13
#187 - Jakob Weickmann / @jweickm

02/16/2022 at 07:58PM

13
#188 - Justin / @jtmusky

02/19/2022 at 07:10PM

13
#189 - WillyPillow / @WillyPillow

02/19/2022 at 11:28PM

13
#190 - Faezix / @Faeziix

02/21/2022 at 01:24PM

13
#191 - Guillaume Peillex / @GPeillex2

02/23/2022 at 06:35PM

13
#192 - Laurent Isenegger / @lisenegger

02/25/2022 at 12:26AM

13
#193 - Kyle Campbell / @Miyelsh

03/02/2022 at 03:38AM

13
#194 - 小柠檬 / @litt_lemon

03/05/2022 at 05:12AM

13
#195 - Łukasz Eckert / @LukaszEckert

03/08/2022 at 03:32PM

13
#196 - hiroma / @HrmsEndo

03/10/2022 at 06:38PM

13
#197 - FLeckami / @FLeckami

03/13/2022 at 01:31PM

13
#198 - ToofanJohn / @ToofanJohn

03/13/2022 at 08:17PM

13
#199 - makita0x01 / @Makita81234049

03/17/2022 at 08:48AM

13
#200 - mebuh / @mebuh42

03/22/2022 at 08:28PM

13
#201 - rnakai / @rnakai_42

03/28/2022 at 07:50AM

13
#202 - Patrick Hereford / @phereford

04/04/2022 at 02:53PM

13
#203 - pusha t daily / @rudellius

04/08/2022 at 10:10PM

13
#204 - fedja golf / @fedjagolf

04/11/2022 at 12:04PM

13
#205 - delnoch / @delnoch1

04/16/2022 at 07:04AM

13
#206 - El Achèche ANIS 🇹🇳 / @elacheche

04/25/2022 at 08:25PM

13
#207 - محمد محمود / @Mo__Saleh_

04/26/2022 at 12:53AM

13
#208 - NicolasWebDev / @NicolasWebDev

04/28/2022 at 01:41PM

13
#209 - Lyren Brown / @LyrenBrown

05/03/2022 at 05:14PM

13
#210 - Javier Contreras / @contranton

05/04/2022 at 03:37AM