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

544 active golfers, 1636 entries

Leaderboard (lowest score wins):
13
#391 - brandjamie / @brandjamie

09/11/2023 at 09:56PM

13
#392 - Monkey Boy / @monkey29089

09/23/2023 at 02:24PM

13
#393 - LandR / @ListenAndR

10/24/2023 at 12:41AM

13
#394 - 小世界 / @walilav

10/27/2023 at 06:39AM

13
#395 - 185264646 / @185264646

11/26/2023 at 11:10AM

13
#396 - dehi / @dehidehidehi

02/11/2024 at 03:49PM

13
#397 - shahanavaz m / @shahanavazm

03/29/2024 at 04:17PM

13
#398 - Valentin Vikhorev / @vvihorev

04/15/2024 at 08:27PM

13
#399 - gpfl0712 / @gpfl0712

04/27/2024 at 02:05PM

13
#400 - Alastair Macfarlane / @macfarlane-dev

05/12/2024 at 12:33PM

13
#401 - Thermospore / @Thermospore

05/20/2024 at 11:26AM

13
#402 - Zigmas Bitinas / @samgiz

06/01/2024 at 10:44AM

13
#403 - Brian Wo / @brainwo

06/05/2024 at 11:01PM

13
#404 - Justin / @justin4481

06/09/2024 at 12:05AM

13
#405 - Jan Musílek / @stinovlas

06/12/2024 at 09:01AM

14
#406 - Emiliano Vazquez / @vazquezemiliano

11/17/2021 at 09:05PM

14
#407 - Milovan Zogovic / @zogash

11/19/2021 at 12:49PM

14
#408 - Cesare Tagliaferri / @taglia

11/20/2021 at 12:44PM

14
#409 - tropicflite737 / @tropicflite737

11/20/2021 at 02:03PM

14
#410 - Sando Itchi / @sando_itchi

11/22/2021 at 08:07PM

14
#411 - John Wohlfert / @jlwohlfert

11/26/2021 at 09:50PM

14
#412 - Kiran / @kiranprasadk

11/28/2021 at 11:54AM

14
#413 - Pablo R. Dinella / @pablordinella

11/30/2021 at 09:33PM

14
#414 - Vegard Henriksen / @MrVegard

12/04/2021 at 12:11PM

14
#415 - John Doe / @JohnDoe75830353

12/25/2021 at 10:32PM

14
#416 - Paul Page / @theRealPaulPage

01/21/2022 at 09:59PM

14
#417 - Sergio Semedi / @SergioSemedi

02/09/2022 at 04:40PM

14
#418 - darius grassi / @dariusgrassi

03/12/2022 at 01:18AM

14
#419 - Shubh Agarwal / @shu7bh

03/20/2022 at 06:38PM

14
#420 - Philipp Schilk / @philipp_schilk

03/21/2022 at 07:17PM