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 9v00622ded15000000000218

Visual block training

You see the input. You see the output. Go.

Start file
a
b
c
d
e
f
g
End file
a g a g a g a
b f b f b f b
c e c e c e c
d d d d d d d
e c e c e c e
f b f b f b f
g a g a g a g

View Diff

1,7c1,7
< a
< b
< c
< d
< e
< f
< g
---
> a g a g a g a
> b f b f b f b
> c e c e c e c
> d d d d d d d
> e c e c e c e
> f b f b f b f
> g a g a g a g

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 173 remaining solutions by signing in and submitting your own entry
#174 盧小小 / @VegetaLu - Score: 183 - 04/01/22 @ 14:42
A g<Esc>jA f<Esc>jA e<Esc>jA d<Esc>jA c<Esc>jA b<Esc>jA a<Esc><C-V>hkkkkkkkkkkkyllppullllp0<C-V>jjjjjjjjjjjlywpulpllpulpllpulllplll<C-V>jjjjjjjc<Esc>hlp<C-V>jjjjjjjjjjyhphhplllll<C-V>jjjjjjjjjjjjjjlllljjhhx<C-V>llll<Esc><Esc>llllljjjjjjjjjjlll:wq<CR>

0 comments


Created by: @mpnmbn

174 active golfers, 949 entries

Leaderboard (lowest score wins):
50
#121 - Alex Pepper / @pepper18608

09/15/2023 at 04:13PM

51
#122 - low huron / @huron_low

01/22/2023 at 07:25AM

52
#123 - math is what I hate / @mpnmbn

03/13/2022 at 01:39PM

52
#124 - vimgolfaccfekxh / @vimgolfaccfekxh

10/19/2022 at 03:28PM

52
#125 - Daniel Nettelfield / @DNIIBOY

12/11/2022 at 09:31PM

53
#126 - Jacob Puthipiroj / @puthipiroj

06/21/2022 at 09:17AM

54
#127 - BPA Free / @programneer

01/12/2023 at 07:07AM

54
#128 - Geek Boy / @Geek79

02/05/2023 at 04:36PM

54
#129 - Maurice Schmicking / @m_schmicking

11/24/2023 at 07:28AM

55
#130 - POSIX / @po6ix

04/06/2022 at 01:05PM

55
#131 - Ratkovszki István / @RatkovszkiIstvn

09/05/2022 at 02:05PM

55
#132 - 으앙 / @meri2727

10/11/2023 at 12:20PM

56
#133 - aalegrias / @aalegrias

03/25/2022 at 08:30PM

56
#134 - Moritz Kraus / @MoritzKraus4

09/03/2022 at 06:31PM

56
#135 - Van / @dangtrivan15

09/17/2022 at 12:00PM

57
#136 - ylv / @ylv_io

04/01/2022 at 10:08PM

57
#137 - Yannick / @Yannick88147038

07/19/2022 at 07:26PM

58
#138 - anonymouse / @anonymo65837183

04/03/2022 at 05:24PM

58
#139 - James Duffy / @jduffy3

04/09/2022 at 07:32PM

59
#140 - Nougatine Naja / @NougatineNaja

04/06/2022 at 11:42AM

59
#141 - 梅 / @umetosawara

04/09/2022 at 07:37AM

59
#142 - Thomas Hiron / @thomashiron

02/20/2023 at 10:48AM

60
#143 - Fedleder / @fedleder

03/18/2022 at 09:12PM

61
#144 - dorianm / @dorianm

03/28/2022 at 04:27AM

62
#145 - hey / @jkijkftufty

05/06/2022 at 06:05PM

62
#146 - Ramil Gadzhiev / @RamiGaggi

08/27/2022 at 01:12PM

64
#147 - lytoooo0 / @lytoooo0

02/27/2023 at 11:45AM

65
#148 - Strageslol / @Strageslol

06/03/2022 at 10:46AM

67
#149 - delnoch / @delnoch1

04/16/2022 at 05:50AM

69
#150 - Detached Head State / @DtachdHeadState

09/07/2023 at 06:06PM