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

532 active golfers, 1594 entries

Leaderboard (lowest score wins):
13
#361 - Surya Balakrishnan / @surya_bdev

10/06/2022 at 01:46PM

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

10/11/2022 at 12:25AM

13
#363 - James Marshall / @astrophd

10/21/2022 at 08:07PM

13
#364 - James Hayden / @don_jaime

10/22/2022 at 04:27AM

13
#365 - James / @Dronak

10/23/2022 at 04:03AM

13
#366 - jimmarq / @jimmarq

10/27/2022 at 05:34PM

13
#367 - vuems / @vuems2win

11/12/2022 at 08:27PM

13
#368 - ky05uk3 / @kyo89347563

11/27/2022 at 12:33PM

13
#369 - Mortiz.Hsu / @mortiz_h

11/29/2022 at 04:32PM

13
#370 - qyACvBm9H8 / @QyBm9

12/05/2022 at 01:25PM

13
#371 - Ringel Natter / @SenorTenor

12/11/2022 at 04:54PM

13
#372 - Zhou Jiazheng / @ZhouJiazheng0

02/14/2023 at 10:19AM

13
#373 - D G G / @DGJourneyman

02/21/2023 at 05:58AM

13
#374 - RosaTryp / @RosaTryp

03/10/2023 at 04:00PM

13
#375 - Vinay Sridhar / @kewllip

03/11/2023 at 06:38PM

13
#376 - ­김수현 / 학생 / 건설환경공학부 / @gimsuhyeonhags1

03/23/2023 at 01:57AM

13
#377 - parazidi / @parazidi

04/23/2023 at 08:54PM

13
#378 - Erick Gonzalez / @eygl_erick

06/09/2023 at 05:00AM

13
#379 - Olivier Bégassat / @zk_evm

06/11/2023 at 01:34PM

13
#380 - Abdelrahman Madkour / @A3Madkour

06/20/2023 at 04:15PM

13
#381 - Eugene Yalansky / @EugeneYalansky

06/21/2023 at 08:46AM

13
#382 - Milan Blažek / @Somin13

08/18/2023 at 08:12AM

13
#383 - James Reeder / @TheRealBreemer

08/20/2023 at 04:33PM

13
#384 - ezotaka / @ezotaka

08/30/2023 at 04:14PM

13
#385 - brandjamie / @brandjamie

09/11/2023 at 09:56PM

13
#386 - Monkey Boy / @monkey29089

09/23/2023 at 02:24PM

13
#387 - LandR / @ListenAndR

10/24/2023 at 12:41AM

13
#388 - 小世界 / @walilav

10/27/2023 at 06:39AM

13
#389 - 185264646 / @185264646

11/26/2023 at 11:10AM

13
#390 - dehi / @dehidehidehi

02/11/2024 at 03:49PM