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

426 active golfers, 1239 entries

Leaderboard (lowest score wins):
14
#331 - Preston Pysh܁ᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠ / @Gordan6freeman

04/23/2022 at 11:23PM

14
#332 - David Tchanturia / @daviti85142401

05/16/2022 at 08:16PM

14
#333 - Driver / @zhouyijiaren

06/11/2022 at 11:10AM

14
#334 - Will Long / @WillLon30283972

06/17/2022 at 03:23PM

14
#335 - LEYO 💻 - Dev / @leoroullois

07/05/2022 at 09:01PM

14
#336 - Abdelrahman Madkour / @A3Madkour

08/19/2022 at 11:32PM

14
#337 - SlavWolf / @SlavWolf1

09/03/2022 at 08:23AM

14
#338 - おせよ / @OhSayYo

11/13/2022 at 09:21AM

14
#339 - Nicholas Healy / @nickrhealy

12/18/2022 at 01:26PM

14
#340 - grhkm / @grhkm21

12/18/2022 at 02:28PM

14
#341 - djheidihoe / @djheidihoe1

12/20/2022 at 03:44PM

15
#342 - Digital Dog / @the_digital_dog

01/05/2022 at 09:23AM

15
#343 - rappenstein2 / @rappenstein2

01/11/2022 at 05:00PM

15
#344 - Bharath Hegde / @BharathIHegdeI

01/18/2022 at 03:09PM

15
#345 - phazy / @phazy_x86

01/21/2022 at 04:19PM

15
#346 - Ashley Feniello / @AshleyFen

02/22/2022 at 01:27AM

15
#347 - Soobeen Park / @SoobeenPark1

03/11/2022 at 07:11AM

15
#348 - Jan Bundesmann / @janbundesmann

03/17/2022 at 07:04PM

15
#349 - Jason Kuan | jasonkuan.eth / @Jason9075Kuan

04/01/2022 at 08:18AM

15
#350 - mmmsoup / @mmmsoup4

04/04/2022 at 01:20PM

15
#351 - Никита Семёнов / @NiKoS1707

04/14/2022 at 07:01AM

15
#352 - Jorge Espinoza / @jorge_espinoza_

04/14/2022 at 04:57PM

15
#353 - Brandon / @7hat_w4s_ep1c

04/15/2022 at 04:25AM

15
#354 - Kevin / @Pursuer8079

05/09/2022 at 03:39AM

15
#355 - Tim / @MarhjaKhazua

05/14/2022 at 09:24AM

15
#356 - Supaiku Supigeru / @supig3ru

06/02/2022 at 08:14AM

15
#357 - Van / @dangtrivan15

09/18/2022 at 08:35AM

15
#358 - Ville Viklund / @ville6000

01/13/2023 at 04:12PM

15
#359 - hshackle / @hjshackleton

01/18/2023 at 04:40AM

16
#360 - jackliusr / @jackliusr

11/19/2021 at 01:39AM