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

404 active golfers, 1171 entries

Leaderboard (lowest score wins):
13
#241 - rnakai / @rnakai_42

03/28/2022 at 07:50AM

13
#242 - Patrick Hereford / @phereford

04/04/2022 at 02:53PM

13
#243 - pusha t daily / @rudellius

04/08/2022 at 10:10PM

13
#244 - fedja golf / @fedjagolf

04/11/2022 at 12:04PM

13
#245 - delnoch / @delnoch1

04/16/2022 at 07:04AM

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

04/25/2022 at 08:25PM

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

04/26/2022 at 12:53AM

13
#248 - NicolasWebDev / @NicolasWebDev

04/28/2022 at 01:41PM

13
#249 - Lyren Brown / @LyrenBrown

05/03/2022 at 05:14PM

13
#250 - Javier Contreras / @contranton

05/04/2022 at 03:37AM

13
#251 - salchint / @salchint

05/04/2022 at 11:07PM

13
#252 - Vitaliy A / @_vitaliy_a

05/06/2022 at 02:06PM

13
#253 - Justin Sane / @Here4Vimgolf

05/10/2022 at 07:41PM

13
#254 - Ed Allison / @eallison1102

05/14/2022 at 10:12PM

13
#255 - ccorvi / @ccorvi1

05/16/2022 at 03:36PM

13
#256 - Enrique Santana / @esantanaya

05/19/2022 at 12:47AM

13
#257 - Nicolas Kreutzer / @NigiCereal

05/19/2022 at 01:08PM

13
#258 - steve / @steve35773420

05/22/2022 at 10:14PM

13
#259 - jcbglbmn / @JacobGelbman

05/22/2022 at 10:52PM

13
#260 - Kwizer / @kwizer

05/28/2022 at 12:26PM

13
#261 - Mr Spoony / @MrKSpoon

05/31/2022 at 11:33AM

13
#262 - Kyle Channer / @KyleC_Designs

06/01/2022 at 03:20AM

13
#263 - ShookerAndBeta / @Shooker2012

06/03/2022 at 06:32PM

13
#264 - Roope Savolainen / @SavolainenRoope

06/05/2022 at 09:35PM

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

06/12/2022 at 02:35PM

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

06/13/2022 at 12:08PM

13
#267 - Adam / @askoufish

06/15/2022 at 04:40AM

13
#268 - yann / @ylsarto

06/20/2022 at 06:24AM

13
#269 - rando bando / @randoba40946238

06/24/2022 at 04:48AM

13
#270 - けつ / @ketsumashu

06/27/2022 at 12:04PM