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

534 active golfers, 1600 entries

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

05/16/2022 at 03:36PM

13
#332 - Enrique Santana / @esantanaya

05/19/2022 at 12:47AM

13
#333 - Nicolas Kreutzer / @NigiCereal

05/19/2022 at 01:08PM

13
#334 - steve / @steve35773420

05/22/2022 at 10:14PM

13
#335 - jcbglbmn / @JacobGelbman

05/22/2022 at 10:52PM

13
#336 - Kwizer / @kwizer

05/28/2022 at 12:26PM

13
#337 - Mr Spoony / @MrKSpoon

05/31/2022 at 11:33AM

13
#338 - Kyle Channer / @KyleC_Designs

06/01/2022 at 03:20AM

13
#339 - ShookerAndBeta / @Shooker2012

06/03/2022 at 06:32PM

13
#340 - Roope Savolainen / @SavolainenRoope

06/05/2022 at 09:35PM

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

06/12/2022 at 02:35PM

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

06/13/2022 at 12:08PM

13
#343 - Adam / @askoufish

06/15/2022 at 04:40AM

13
#344 - yann / @ylsarto

06/20/2022 at 06:24AM

13
#345 - rando bando / @randoba40946238

06/24/2022 at 04:48AM

13
#346 - けつ / @ketsumashu

06/27/2022 at 12:04PM

13
#347 - PL Siddharth / @Havok1993

06/29/2022 at 11:19AM

13
#348 - Siddharth Murali / @SidTweetsALess

06/30/2022 at 05:29AM

13
#349 - Rammia🇨🇳 / @rammiahcn

07/11/2022 at 11:18AM

13
#350 - satetheus-vimgolf / @SVimgolf

07/18/2022 at 06:33AM

13
#351 - Buatvimgolf / @buatvimgolf

07/27/2022 at 03:18PM

13
#352 - Maksim Galinchik / @MGalinchik

08/10/2022 at 10:10AM

13
#353 - . / @lacksommelier

08/12/2022 at 10:47AM

13
#354 - Laurent Atlan / @laurentatlan1

08/14/2022 at 08:23PM

13
#355 - Float / @Floaten1

08/21/2022 at 08:45AM

13
#356 - Brandon / @Brandon10678836

08/24/2022 at 04:43PM

13
#357 - Moritz Kraus / @MoritzKraus4

09/03/2022 at 06:42PM

13
#358 - Ratkovszki István / @RatkovszkiIstvn

09/05/2022 at 06:30PM

13
#359 - yobiscus / @yobiscus

09/12/2022 at 06:09PM

13
#360 - Pheimors / @pheimors

10/02/2022 at 08:10AM