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):
12
#151 - Regan Tackett / @arrowtackett

05/30/2022 at 09:24AM

12
#152 - Henry Chimpden Earwicker / @HChEarwicker

06/14/2022 at 05:27AM

12
#153 - Golfer / @Golfer56598542

06/24/2022 at 11:33AM

12
#154 - 6-viron / @6_viron

07/13/2022 at 08:05PM

12
#155 - brett / @brettyukich

07/19/2022 at 07:48PM

12
#156 - xvczuwo / @xvczuwoa

08/06/2022 at 10:05AM

12
#157 - Leroy Jenkins / @LeroyJe70429357

09/16/2022 at 11:43PM

12
#158 - Andrew Liu / @AndrewL45936893

09/19/2022 at 04:16AM

12
#159 - Julien Durillon / @juuduu

09/29/2022 at 05:36PM

12
#160 - vimgolfaccfekxh / @vimgolfaccfekxh

10/16/2022 at 05:21PM

13
#161 - Darius Smaliukas / @daraz999

11/18/2021 at 03:30PM

13
#162 - Jonáš Šerých / @serycjon

11/18/2021 at 07:13PM

13
#163 - TimMcGuire / @mcguire

11/18/2021 at 09:50PM

13
#164 - Smylers / @Smylers2

11/18/2021 at 11:35PM

13
#165 - Sergio / @SergioVl12

11/19/2021 at 05:22AM

13
#166 - WhyIsThisFishInMyEar / @why_ear

11/20/2021 at 10:11AM

13
#167 - Chris Niekel / @vimgolfer534529

11/20/2021 at 10:51AM

13
#168 - thari.eth / @thari_eth

11/20/2021 at 11:28AM

13
#169 - Alexis Praga / @Fitzwy

11/20/2021 at 12:39PM

13
#170 - Snurli / @Snurlipus

11/20/2021 at 05:09PM

13
#171 - Dan / @dstein64

11/21/2021 at 03:37AM

13
#172 - Jean George / @JeanGeo20504212

11/21/2021 at 11:06AM

13
#173 - Theo Gregory / @tjmgregory

11/21/2021 at 06:59PM

13
#174 - Marcin Krajewski / @mkrajewski_

11/22/2021 at 05:12PM

13
#175 - king sized toilet / @ohwowcrazy

11/22/2021 at 08:34PM

13
#176 - MEschenbacher / @eschenbacher_m

11/27/2021 at 07:29PM

13
#177 - mehbark / @mehbark

11/28/2021 at 07:42PM

13
#178 - Michael Herring / @mayoroftuesday

11/30/2021 at 08:51PM

13
#179 - Shrutesh Patil / @patil_shrutesh

12/02/2021 at 08:39PM

13
#180 - Vladimir / @vnovichek

12/03/2021 at 01:18PM