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

543 active golfers, 1629 entries

Leaderboard (lowest score wins):
11
#91 - Felix Linhardt / @FelixLinhardt

02/16/2022 at 10:26PM

11
#92 - Justin Haaheim / @justinhaaheim

02/18/2022 at 10:59AM

11
#93 - Matthias Bartsch 🏠 / @MBartsch

02/19/2022 at 12:34PM

11
#94 - blabla zincou / @BZincou

02/22/2022 at 10:29PM

11
#95 - Brett Bender / @brttbndr

02/25/2022 at 04:55AM

11
#96 - Henry qlf / @SnannartHenry

02/27/2022 at 07:33PM

11
#97 - Marcel Funderák / @fundosh

03/04/2022 at 04:55PM

11
#98 - Shady / @MikolajPiekutow

03/12/2022 at 07:42PM

11
#99 - Antonio D. González / @antoniodgonz

03/13/2022 at 03:35PM

11
#100 - h / @tgen22334

03/17/2022 at 02:34PM

11
#101 - onkeL / @onkeL_cs

03/19/2022 at 11:57PM

11
#102 - Ramtin Martin / @martin_ramtin

03/22/2022 at 02:02AM

11
#103 - hamb / @hamb88140219

03/25/2022 at 04:23AM

11
#104 - FeAx / @_FeAx_

03/27/2022 at 10:56AM

11
#105 - dorianm / @dorianm

03/28/2022 at 04:37AM

11
#106 - Sreeram Vennam / @vnnm404

04/01/2022 at 11:00AM

11
#107 - Sergey Yakovlev / @selfuryon

04/03/2022 at 05:08PM

11
#108 - Leo Winters / @LeoPWinters

04/03/2022 at 07:26PM

11
#109 - John Xu / @xzzhiao

04/06/2022 at 01:31AM

11
#110 - Hermit McDermot / @hermit_mcdermot

04/06/2022 at 11:45AM

11
#111 - 스치 / @champemunasong

04/10/2022 at 02:22AM

11
#112 - James Duffy / @jduffy3

04/11/2022 at 02:52AM

11
#113 - sapir malka / @sapir5522

04/11/2022 at 12:06PM

11
#114 - Dominc Zimmer / @DomincZimmer

04/12/2022 at 08:47AM

11
#115 - Andreas Aumann / @andreasaumann

04/16/2022 at 02:17PM

11
#116 - ff df / @ffdf93207177

04/18/2022 at 02:33AM

11
#117 - Pierre-Olivier Proulx / @PierreO57066096

04/19/2022 at 12:48AM

11
#118 - Tom11w / @Tom11Wh

04/24/2022 at 08:03AM

11
#119 - gugik / @rafgugi

04/27/2022 at 01:57PM

11
#120 - sdfghjk / @sdfghjk88424595

04/27/2022 at 11:39PM