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

443 active golfers, 1294 entries

Leaderboard (lowest score wins):
11
#91 - onkeL / @onkeL_cs

03/19/2022 at 11:57PM

11
#92 - Ramtin Martin / @martin_ramtin

03/22/2022 at 02:02AM

11
#93 - hamb / @hamb88140219

03/25/2022 at 04:23AM

11
#94 - FeAx / @_FeAx_

03/27/2022 at 10:56AM

11
#95 - dorianm / @dorianm

03/28/2022 at 04:37AM

11
#96 - Sreeram Vennam / @vnnm404

04/01/2022 at 11:00AM

11
#97 - Sergey Yakovlev / @selfuryon

04/03/2022 at 05:08PM

11
#98 - Leo Winters / @LeoPWinters

04/03/2022 at 07:26PM

11
#99 - John Xu / @xzzhiao

04/06/2022 at 01:31AM

11
#100 - Hermit McDermot / @hermit_mcdermot

04/06/2022 at 11:45AM

11
#101 - Haizn Scie­čö× / @champemunasong

04/10/2022 at 02:22AM

11
#102 - James Duffy / @jduffy3

04/11/2022 at 02:52AM

11
#103 - sapir malka / @sapir5522

04/11/2022 at 12:06PM

11
#104 - Dominc Zimmer / @DomincZimmer

04/12/2022 at 08:47AM

11
#105 - Andreas Aumann / @andreasaumann

04/16/2022 at 02:17PM

11
#106 - ff df / @ffdf93207177

04/18/2022 at 02:33AM

11
#107 - Pierre-Olivier Proulx / @PierreO57066096

04/19/2022 at 12:48AM

11
#108 - Tom11w / @Tom11Wh

04/24/2022 at 08:03AM

11
#109 - gugik / @rafgugi

04/27/2022 at 01:57PM

11
#110 - sdfghjk / @sdfghjk88424595

04/27/2022 at 11:39PM

11
#111 - Youssef Magdy / @youssef_magdy29

04/28/2022 at 02:15AM

11
#112 - yancy / @yancy_dong

04/29/2022 at 02:37AM

11
#113 - quemeraisc / @quemeraisc

05/06/2022 at 08:08AM

11
#114 - jofene / @jofene2

05/06/2022 at 01:01PM

11
#115 - Ryan Murphy / @RyanMur92693753

05/07/2022 at 03:14AM

11
#116 - Lanly / @1094916227

05/09/2022 at 03:33AM

11
#117 - russellzhaomao / @russellzhaomao

05/18/2022 at 08:45AM

11
#118 - Pablo Cárdenas / @pablo_cardenasb

05/20/2022 at 05:40AM

11
#119 - Eduardo / @earada

05/21/2022 at 08:27AM

11
#120 - Alex / @AlexanderHeatl2

05/21/2022 at 04:48PM