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

399 active golfers, 1157 entries

Leaderboard (lowest score wins):
11
#61 - m397 / @m39752809546

01/24/2022 at 09:26PM

11
#62 - Ravi S Sinha / @ambidextrousTx

01/25/2022 at 04:08PM

11
#63 - peter / @nbfhscl_peter

01/26/2022 at 09:00AM

11
#64 - Hunter Baker / @HuntersBaker

01/29/2022 at 01:47AM

11
#65 - Brian Leung / @brian_leung

02/01/2022 at 04:46AM

11
#66 - Thomas Lüdecke / @t0mM3k

02/01/2022 at 03:31PM

11
#67 - iBhagwan / @iiBhagwan

02/04/2022 at 01:06AM

11
#68 - Il Granfiatore / @M_Klauer

02/04/2022 at 10:05AM

11
#69 - emilio / @emilioemmanueI

02/06/2022 at 02:58AM

11
#70 - Даня Ефимов / @Abberatus

02/09/2022 at 02:57PM

11
#71 - Ryan Perry-Nguyen / @rperryng

02/12/2022 at 06:12AM

11
#72 - aiueo / @X4i2MI8MEOXp1R

02/12/2022 at 10:07AM

11
#73 - Nathaniel Cagle / @Subtlebots

02/13/2022 at 04:36AM

11
#74 - Cathal McGuire / @McguireCathal

02/14/2022 at 05:28PM

11
#75 - Felix Linhardt / @FelixLinhardt

02/16/2022 at 10:26PM

11
#76 - Justin Haaheim / @justinhaaheim

02/18/2022 at 10:59AM

11
#77 - Matthias Bartsch 🏠 / @MBartsch

02/19/2022 at 12:34PM

11
#78 - blabla zincou / @BZincou

02/22/2022 at 10:29PM

11
#79 - Brett Bender / @brttbndr

02/25/2022 at 04:55AM

11
#80 - Henry qlf / @SnannartHenry

02/27/2022 at 07:33PM

11
#81 - Marcel Funderák / @fundosh

03/04/2022 at 04:55PM

11
#82 - Shady / @MikolajPiekutow

03/12/2022 at 07:42PM

11
#83 - Antonio D. González / @antoniodgonz

03/13/2022 at 03:35PM

11
#84 - h / @tgen22334

03/17/2022 at 02:34PM

11
#85 - onkeL / @onkeL_cs

03/19/2022 at 11:57PM

11
#86 - Ramtin Martin / @martin_ramtin

03/22/2022 at 02:02AM

11
#87 - hamb / @hamb88140219

03/25/2022 at 04:23AM

11
#88 - FeAx / @_FeAx_

03/27/2022 at 10:56AM

11
#89 - dorianm / @dorianm

03/28/2022 at 04:37AM

11
#90 - Sreeram Vennam / @vnnm404

04/01/2022 at 11:00AM