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

556 active golfers, 1657 entries

Leaderboard (lowest score wins):
13
#331 - NicolasWebDev / @NicolasWebDev

04/28/2022 at 01:41PM

13
#332 - Lyren Brown / @LyrenBrown

05/03/2022 at 05:14PM

13
#333 - Javier Contreras / @contranton

05/04/2022 at 03:37AM

13
#334 - salchint / @salchint

05/04/2022 at 11:07PM

13
#335 - Vitaliy A / @_vitaliy_a

05/06/2022 at 02:06PM

13
#336 - Justin Sane / @Here4Vimgolf

05/10/2022 at 07:41PM

13
#337 - Ed Allison / @eallison1102

05/14/2022 at 10:12PM

13
#338 - ccorvi / @ccorvi1

05/16/2022 at 03:36PM

13
#339 - Enrique Santana / @esantanaya

05/19/2022 at 12:47AM

13
#340 - Nicolas Kreutzer / @NigiCereal

05/19/2022 at 01:08PM

13
#341 - steve / @steve35773420

05/22/2022 at 10:14PM

13
#342 - jcbglbmn / @JacobGelbman

05/22/2022 at 10:52PM

13
#343 - Kwizer / @kwizer

05/28/2022 at 12:26PM

13
#344 - Mr Spoony / @MrKSpoon

05/31/2022 at 11:33AM

13
#345 - Kyle Channer / @KyleC_Designs

06/01/2022 at 03:20AM

13
#346 - ShookerAndBeta / @Shooker2012

06/03/2022 at 06:32PM

13
#347 - Roope Savolainen / @SavolainenRoope

06/05/2022 at 09:35PM

13
#348 - math is what I hate / @mpnmbn

06/12/2022 at 02:35PM

13
#349 - タク@Webエンジニア / @gakushi23

06/13/2022 at 12:08PM

13
#350 - Adam / @askoufish

06/15/2022 at 04:40AM

13
#351 - yann / @ylsarto

06/20/2022 at 06:24AM

13
#352 - rando bando / @randoba40946238

06/24/2022 at 04:48AM

13
#353 - けつ / @ketsumashu

06/27/2022 at 12:04PM

13
#354 - PL Siddharth / @Havok1993

06/29/2022 at 11:19AM

13
#355 - Siddharth Murali / @SidTweetsALess

06/30/2022 at 05:29AM

13
#356 - Rammia🇨🇳 / @rammiahcn

07/11/2022 at 11:18AM

13
#357 - satetheus-vimgolf / @SVimgolf

07/18/2022 at 06:33AM

13
#358 - Buatvimgolf / @buatvimgolf

07/27/2022 at 03:18PM

13
#359 - Maksim Galinchik / @MGalinchik

08/10/2022 at 10:10AM

13
#360 - . / @lacksommelier

08/12/2022 at 10:47AM