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

534 active golfers, 1600 entries

Leaderboard (lowest score wins):
11
#181 - tien / @tien40766111

11/13/2023 at 04:09PM

11
#182 - Ludovic Schwartz / @ludovicschwartz

11/16/2023 at 06:46PM

11
#183 - asirago / @asiragoo

12/13/2023 at 07:25AM

11
#184 - levioneyh / @levioneyh

12/13/2023 at 07:56AM

11
#185 - Leon Katsnelson / @leonkatsnelson

12/15/2023 at 09:13PM

11
#186 - Michele Moio / @mmoio

12/18/2023 at 12:05PM

11
#187 - hatena / @rotwm

12/23/2023 at 09:54PM

11
#188 - weixiaobaoL / @weixiaobaoL

01/02/2024 at 08:17AM

11
#189 - BlockLune / @BlockLune

01/08/2024 at 07:30AM

11
#190 - Dayuan / @Dayuan-mc

01/09/2024 at 08:55AM

11
#191 - Arey125 / @Arey125

01/13/2024 at 08:00PM

11
#192 - ndaval / @ndaval

01/14/2024 at 07:48AM

11
#193 - George Angelopoulos / @gangelop

02/17/2024 at 06:41AM

11
#194 - EtherFan / @ether_fan

02/25/2024 at 10:12AM

11
#195 - vimster12312 / @vimster12394846

03/27/2024 at 03:24PM

11
#196 - Aly Thobani / @alythobani

04/04/2024 at 11:43PM

11
#197 - Peppa Pig / @PeppaPi95550250

04/06/2024 at 03:36AM

11
#198 - SnakitoGamer4160 / @SnakitoGamer4160

04/07/2024 at 08:01PM

11
#199 - Rodney Visser / @_Radnus

04/12/2024 at 03:11PM

11
#200 - James Tan / @jamesbtan

05/07/2024 at 12:38PM

11
#201 - Paul McDowell / @etothepi16

05/21/2024 at 09:29PM

12
#202 - BESSENG A IREH Guy / @guybesseng

11/29/2021 at 11:43AM

12
#203 - logtxt / @logtxt1

12/10/2021 at 10:51AM

12
#204 - Brian Park / @briansypark

01/10/2022 at 09:52PM

12
#205 - e1mnos / @e1mnos

01/17/2022 at 10:29AM

12
#206 - Blake Tereau / @BlakeTereau

01/27/2022 at 05:05PM

12
#207 - soundscope / @__soundscope__

02/11/2022 at 02:01AM

12
#208 - Michael Potter / @MicLeviPotter

02/12/2022 at 02:53AM

12
#209 - Ofer Yehuda / @OferYehuda

02/24/2022 at 03:52PM

12
#210 - aalegrias / @aalegrias

03/25/2022 at 09:18PM