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

303 active golfers, 859 entries

Leaderboard (lowest score wins):
14
#241 - François / @mortyZZ

04/19/2022 at 04:27PM

14
#242 - Preston Pysh܁ᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠᅠ / @Gordan6freeman

04/23/2022 at 11:23PM

14
#243 - David Tchanturia / @daviti85142401

05/16/2022 at 08:16PM

15
#244 - Digital Dog / @the_digital_dog

01/05/2022 at 09:23AM

15
#245 - rappenstein2 / @rappenstein2

01/11/2022 at 05:00PM

15
#246 - Bharath Hegde / @BharathIHegdeI

01/18/2022 at 03:09PM

15
#247 - phazy / @phazy_x86

01/21/2022 at 04:19PM

15
#248 - Ashley Feniello / @AshleyFen

02/22/2022 at 01:27AM

15
#249 - Soobeen Park / @SoobeenPark1

03/11/2022 at 07:11AM

15
#250 - Jan Bundesmann / @janbundesmann

03/17/2022 at 07:04PM

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

04/01/2022 at 08:18AM

15
#252 - mmmsoup / @mmmsoup4

04/04/2022 at 01:20PM

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

04/14/2022 at 07:01AM

15
#254 - Jorge Espinoza / @jorge_espinoza_

04/14/2022 at 04:57PM

15
#255 - Brandon / @7hat_w4s_ep1c

04/15/2022 at 04:25AM

15
#256 - Kevin / @Pursuer8079

05/09/2022 at 03:39AM

15
#257 - Tim / @MarhjaKhazua

05/14/2022 at 09:24AM

16
#258 - jackliusr / @jackliusr

11/19/2021 at 01:39AM

16
#259 - izbr / @IBRice101

11/20/2021 at 04:59PM

16
#260 - Regina Liu / @reginaliu20

12/08/2021 at 03:09AM

16
#261 - MyStats: The 7 Habits / @7Mystats

12/23/2021 at 09:51AM

16
#262 - Aaron / @aaronvickers_

01/13/2022 at 11:46AM

16
#263 - TT / @TT_Minato

01/24/2022 at 05:58AM

16
#264 - Michael Carey / @Mick_Carey

01/28/2022 at 11:50AM

16
#265 - sfsbeaetwafwear / @sfsbeaetwafwear

01/29/2022 at 03:34PM

16
#266 - Arif Ardiansyah / @ArsanOfficial

02/21/2022 at 11:24AM

16
#267 - Alex Jones / @HiImAlexJ

02/25/2022 at 10:20AM

16
#268 - Tim Gent / @TimmehGent

02/26/2022 at 11:48PM

16
#269 - anonymouse / @anonymo65837183

03/10/2022 at 02:11AM

16
#270 - 서보현 / @ktseo41

04/02/2022 at 12:22PM