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

297 active golfers, 839 entries

Leaderboard (lowest score wins):
18
#271 - Maorun / @Maorun11

12/17/2021 at 04:04PM

18
#272 - Youmu / @___Youmu___

02/08/2022 at 12:30PM

18
#273 - Andreas Burg / @der_abu

03/05/2022 at 08:05AM

18
#274 - Auri Iodide / @auri_iodide

03/06/2022 at 12:08AM

18
#275 - Even Wei / @evenwei59

03/17/2022 at 07:28AM

18
#276 - 梅 / @umetosawara

04/09/2022 at 08:17AM

19
#277 - Michael Doron / @MichaelDoronII

03/19/2022 at 04:37AM

20
#278 - rakshith 🦄 / @rakshithbellare

12/28/2021 at 10:07AM

20
#279 - Josh Gordon / @thejoshgordon

02/12/2022 at 08:30AM

20
#280 - x03n046 / @x03n046

05/12/2022 at 08:45AM

21
#281 - Andrewana / @andrewanachan

02/16/2022 at 05:21AM

21
#282 - fralcow / @fralcow1

02/18/2022 at 07:46PM

22
#283 - LuccasVimGolfer / @VimLuccas

02/27/2022 at 12:31PM

29
#284 - senator-gracchus / @senatorgracchu1

01/24/2022 at 01:30PM

32
#285 - vtymoshchyk / @vtymoshchyk1

02/03/2022 at 08:17AM

33
#286 - ROBOTSTOP / @ROBOTST0P

12/24/2021 at 02:58AM

38
#287 - Jacob / @Jellydones

02/18/2022 at 04:48PM

39
#288 - Rodney Visser / @_Radnus

03/14/2022 at 05:08PM

41
#289 - Julian Domke / @judocodes

02/05/2022 at 02:52PM

41
#290 - will huebner / @wthueb

03/14/2022 at 11:28PM

42
#291 - 盧小小 / @VegetaLu

04/01/2022 at 03:42PM

43
#292 - Naughty Noodle / @NaughtyyNoodle

03/08/2022 at 11:01PM

46
#293 - Joe Wragg / @joewragg

12/08/2021 at 12:43PM

46
#294 - Cyprien Poisson / @CyprienPoisson

02/07/2022 at 09:22AM

50
#295 - Ted Kruijff / @kalkran

04/15/2022 at 09:01AM

56
#296 - -MbirkO- / @MbirkO3

03/06/2022 at 04:35PM

155
#297 - oleg / @oleg12573505

01/29/2022 at 02:07PM