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

517 active golfers, 1550 entries

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

01/03/2022 at 05:22PM

11
#62 - Humbaba / @humbabu

01/03/2022 at 10:35PM

11
#63 - POSIX / @po6ix

01/07/2022 at 11:42AM

11
#64 - Eric Briand / @eric_briand

01/07/2022 at 07:47PM

11
#65 - roudens / @roudens2

01/08/2022 at 02:56PM

11
#66 - 勉强掩盖 / @NROOhu88PhVQYLT

01/12/2022 at 12:17PM

11
#67 - Duncan / @Duncan31503119

01/12/2022 at 09:44PM

11
#68 - mariavimgolf / @mariavimgolf

01/16/2022 at 01:11PM

11
#69 - Adam Sanghera / @AdamSanghera

01/17/2022 at 09:38PM

11
#70 - Eric Tran / @traneric94

01/18/2022 at 04:25AM

11
#71 - Ítalo Vieira / @italoviieira

01/20/2022 at 03:25AM

11
#72 - dponce / @____d_1_3_g_0

01/23/2022 at 04:01AM

11
#73 - Simon CHEVOLLEAU / @SimonCHEVOLLEA2

01/24/2022 at 06:10PM

11
#74 - m397 / @m39752809546

01/24/2022 at 09:26PM

11
#75 - Ravi S Sinha / @ambidextrousTx

01/25/2022 at 04:08PM

11
#76 - peter / @nbfhscl_peter

01/26/2022 at 09:00AM

11
#77 - Hunter Baker / @HuntersBaker

01/29/2022 at 01:47AM

11
#78 - Brian Leung / @brian_leung

02/01/2022 at 04:46AM

11
#79 - Thomas Lüdecke / @t0mM3k

02/01/2022 at 03:31PM

11
#80 - iBhagwan / @iiBhagwan

02/04/2022 at 01:06AM

11
#81 - Il Granfiatore / @M_Klauer

02/04/2022 at 10:05AM

11
#82 - emilio / @emilioemmanueI

02/06/2022 at 02:58AM

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

02/09/2022 at 02:57PM

11
#84 - Ryan Perry-Nguyen / @rperryng

02/12/2022 at 06:12AM

11
#85 - aiueo / @X4i2MI8MEOXp1R

02/12/2022 at 10:07AM

11
#86 - Nathaniel Cagle / @Subtlebots

02/13/2022 at 04:36AM

11
#87 - Cathal McGuire / @McguireCathal

02/14/2022 at 05:28PM

11
#88 - Felix Linhardt / @FelixLinhardt

02/16/2022 at 10:26PM

11
#89 - Justin Haaheim / @justinhaaheim

02/18/2022 at 10:59AM

11
#90 - Matthias Bartsch 🏠 / @MBartsch

02/19/2022 at 12:34PM