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

401 active golfers, 1163 entries

Leaderboard (lowest score wins):
13
#271 - Siddharth Murali / @SidTweetsALess

06/30/2022 at 05:29AM

13
#272 - Rammia🇨🇳 / @rammiahcn

07/11/2022 at 11:18AM

13
#273 - satetheus-vimgolf / @SVimgolf

07/18/2022 at 06:33AM

13
#274 - Buatvimgolf / @buatvimgolf

07/27/2022 at 03:18PM

13
#275 - Maksim Galinchik / @MGalinchik

08/10/2022 at 10:10AM

13
#276 - . / @lacksommelier

08/12/2022 at 10:47AM

13
#277 - Laurent Atlan / @laurentatlan1

08/14/2022 at 08:23PM

13
#278 - Float / @Floaten1

08/21/2022 at 08:45AM

13
#279 - Brandon / @Brandon10678836

08/24/2022 at 04:43PM

13
#280 - Moritz Kraus / @MoritzKraus4

09/03/2022 at 06:42PM

13
#281 - Ratkovszki István / @RatkovszkiIstvn

09/05/2022 at 06:30PM

13
#282 - yobiscus / @yobiscus

09/12/2022 at 06:09PM

13
#283 - Alex Lewin / @_AlexLewin

09/19/2022 at 04:41PM

13
#284 - Pheimors / @pheimors

10/02/2022 at 08:10AM

13
#285 - LordPax / @LordPompax

10/04/2022 at 08:26PM

13
#286 - Surya Balakrishnan / @surya_bdev

10/06/2022 at 01:46PM

13
#287 - キムラ・OPEL・ユウジ / @kimurayuuji79

10/11/2022 at 12:25AM

13
#288 - James Marshall / @astrophd

10/21/2022 at 08:07PM

13
#289 - James Hayden / @don_jaime

10/22/2022 at 04:27AM

13
#290 - James / @Dronak

10/23/2022 at 04:03AM

13
#291 - jimmarq / @jimmarq

10/27/2022 at 05:34PM

13
#292 - vuems / @vuems2win

11/12/2022 at 08:27PM

13
#293 - ky05uk3 / @kyo89347563

11/27/2022 at 12:33PM

13
#294 - Mortiz.Hsu / @mortiz_h

11/29/2022 at 04:32PM

14
#295 - Emiliano Vazquez / @vazquezemiliano

11/17/2021 at 09:05PM

14
#296 - Milovan Zogovic / @zogash

11/19/2021 at 12:49PM

14
#297 - Cesare Tagliaferri / @taglia

11/20/2021 at 12:44PM

14
#298 - tropicflite737 / @tropicflite737

11/20/2021 at 02:03PM

14
#299 - Sando Itchi / @sando_itchi

11/22/2021 at 08:07PM

14
#300 - John Wohlfert / @jlwohlfert

11/26/2021 at 09:50PM