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
#211 - salchint / @salchint

05/04/2022 at 11:07PM

13
#212 - Vitaliy A / @_vitaliy_a

05/06/2022 at 02:06PM

13
#213 - JustHereForTheVim / @Here4Vimgolf

05/10/2022 at 07:41PM

13
#214 - Ed Allison / @eallison1102

05/14/2022 at 10:12PM

13
#215 - ccorvi / @ccorvi1

05/16/2022 at 03:36PM

13
#216 - Enrique Santana / @esantanaya

05/19/2022 at 12:47AM

13
#217 - Nicolas Kreutzer / @NigiCereal

05/19/2022 at 01:08PM

13
#218 - steve / @steve35773420

05/22/2022 at 10:14PM

13
#219 - jcbglbmn / @JacobGelbman

05/22/2022 at 10:52PM

13
#220 - Kwizer / @kwizer

05/28/2022 at 12:26PM

14
#221 - Emiliano Vazquez / @vazquezemiliano

11/17/2021 at 09:05PM

14
#222 - Milovan Zogovic / @zogash

11/19/2021 at 12:49PM

14
#223 - Cesare Tagliaferri / @taglia

11/20/2021 at 12:44PM

14
#224 - tropicflite737 / @tropicflite737

11/20/2021 at 02:03PM

14
#225 - Sando Itchi / @sando_itchi

11/22/2021 at 08:07PM

14
#226 - John Wohlfert / @jlwohlfert

11/26/2021 at 09:50PM

14
#227 - Kiran / @kiranprasadk

11/28/2021 at 11:54AM

14
#228 - Pablo R. Dinella / @pablordinella

11/30/2021 at 09:33PM

14
#229 - Vegard Henriksen / @MrVegard

12/04/2021 at 12:11PM

14
#230 - John Doe / @JohnDoe75830353

12/25/2021 at 10:32PM

14
#231 - Paul Page / @theRealPaulPage

01/21/2022 at 09:59PM

14
#232 - Sergio Semedi / @SergioSemedi

02/09/2022 at 04:40PM

14
#233 - darius grassi / @dariusgrassi

03/12/2022 at 01:18AM

14
#234 - Shubh Agarwal / @shu7bh

03/20/2022 at 06:38PM

14
#235 - Philipp Schilk / @TheSchilk

03/21/2022 at 07:17PM

14
#236 - rr / @rodgeur31

03/28/2022 at 08:11PM

14
#237 - grim reefer / @LordKingGoof

03/29/2022 at 02:36AM

14
#238 - Johnnie Walker / @Johnnie11414500

04/10/2022 at 09:03AM

14
#239 - Graham Bates / @gigabates

04/12/2022 at 06:28PM

14
#240 - タケ / @Take3832

04/18/2022 at 02:33PM