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

405 active golfers, 1176 entries

Leaderboard (lowest score wins):
14
#301 - tropicflite737 / @tropicflite737

11/20/2021 at 02:03PM

14
#302 - Sando Itchi / @sando_itchi

11/22/2021 at 08:07PM

14
#303 - John Wohlfert / @jlwohlfert

11/26/2021 at 09:50PM

14
#304 - Kiran / @kiranprasadk

11/28/2021 at 11:54AM

14
#305 - Pablo R. Dinella / @pablordinella

11/30/2021 at 09:33PM

14
#306 - Vegard Henriksen / @MrVegard

12/04/2021 at 12:11PM

14
#307 - John Doe / @JohnDoe75830353

12/25/2021 at 10:32PM

14
#308 - Paul Page / @theRealPaulPage

01/21/2022 at 09:59PM

14
#309 - Sergio Semedi / @SergioSemedi

02/09/2022 at 04:40PM

14
#310 - darius grassi / @dariusgrassi

03/12/2022 at 01:18AM

14
#311 - Shubh Agarwal / @shu7bh

03/20/2022 at 06:38PM

14
#312 - Philipp Schilk / @TheSchilk

03/21/2022 at 07:17PM

14
#313 - rr / @rodgeur31

03/28/2022 at 08:11PM

14
#314 - grim reefer / @LordKingGoof

03/29/2022 at 02:36AM

14
#315 - Johnnie Walker / @Johnnie11414500

04/10/2022 at 09:03AM

14
#316 - Graham Bates / @gigabates

04/12/2022 at 06:28PM

14
#317 - タケ / @Take3832

04/18/2022 at 02:33PM

14
#318 - François / @mortyZZ

04/19/2022 at 04:27PM

14
#319 - Preston Pysh܁ᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠ / @Gordan6freeman

04/23/2022 at 11:23PM

14
#320 - David Tchanturia / @daviti85142401

05/16/2022 at 08:16PM

14
#321 - Driver / @zhouyijiaren

06/11/2022 at 11:10AM

14
#322 - Will Long / @WillLon30283972

06/17/2022 at 03:23PM

14
#323 - LEYO 💻 - Dev / @leoroullois

07/05/2022 at 09:01PM

14
#324 - Abdelrahman Madkour / @A3Madkour

08/19/2022 at 11:32PM

14
#325 - SlavWolf / @SlavWolf1

09/03/2022 at 08:23AM

14
#326 - おせよ / @OhSayYo

11/13/2022 at 09:21AM

15
#327 - Digital Dog / @the_digital_dog

01/05/2022 at 09:23AM

15
#328 - rappenstein2 / @rappenstein2

01/11/2022 at 05:00PM

15
#329 - Bharath Hegde / @BharathIHegdeI

01/18/2022 at 03:09PM

15
#330 - phazy / @phazy_x86

01/21/2022 at 04:19PM