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
#121 - Darius Smaliukas / @daraz999

11/18/2021 at 03:30PM

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

11/18/2021 at 07:13PM

13
#123 - TimMcGuire / @mcguire

11/18/2021 at 09:50PM

13
#124 - Smylers / @Smylers2

11/18/2021 at 11:35PM

13
#125 - Sergio / @SergioVl12

11/19/2021 at 05:22AM

13
#126 - WhyIsThisFishInMyEar / @why_ear

11/20/2021 at 10:11AM

13
#127 - Chris Niekel / @vimgolfer534529

11/20/2021 at 10:51AM

13
#128 - thari.eth / @thari_eth

11/20/2021 at 11:28AM

13
#129 - Alexis Praga / @Fitzwy

11/20/2021 at 12:39PM

13
#130 - Snurli / @Snurlipus

11/20/2021 at 05:09PM

13
#131 - Dan / @dstein64

11/21/2021 at 03:37AM

13
#132 - Jean George / @JeanGeo20504212

11/21/2021 at 11:06AM

13
#133 - Theo Gregory / @tjmgregory

11/21/2021 at 06:59PM

13
#134 - Marcin Krajewski / @mkrajewski_

11/22/2021 at 05:12PM

13
#135 - king sized toilet / @ohwowcrazy

11/22/2021 at 08:34PM

13
#136 - MEschenbacher / @eschenbacher_m

11/27/2021 at 07:29PM

13
#137 - mehbark / @mehbark

11/28/2021 at 07:42PM

13
#138 - Michael Herring / @mayoroftuesday

11/30/2021 at 08:51PM

13
#139 - Shrutesh Patil / @patil_shrutesh

12/02/2021 at 08:39PM

13
#140 - Vladimir / @vnovichek

12/03/2021 at 01:18PM

13
#141 - A White Dwarf / @AWhiteDwarf1

12/03/2021 at 09:03PM

13
#142 - Joe Ellis / @joechrisellis

12/05/2021 at 02:55PM

13
#143 - Peter Salvi / @salvipeter

12/06/2021 at 11:18AM

13
#144 - Leander Hendrikx / @leanderhendrikx

12/06/2021 at 02:07PM

13
#145 - José Medrano / @happylilmexican

12/06/2021 at 07:36PM

13
#146 - Christopher Williams / @chrstphrsnw

12/06/2021 at 10:19PM

13
#147 - wandering sol / @SunReyE

12/08/2021 at 12:23AM

13
#148 - Peter Ly / @PeterLy71

12/12/2021 at 02:00PM

13
#149 - ±copy / @murdiler

12/14/2021 at 09:19AM

13
#150 - Elizabeth / @sprinkles418

12/14/2021 at 04:27PM