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 132 remaining solutions by signing in and submitting your own entry
#133 盧小小 / @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

133 active golfers, 693 entries

Leaderboard (lowest score wins):
50
#91 - rnakai / @rnakai_42

03/30/2022 at 09:46AM

51
#92 - low huron / @huron_low

01/22/2023 at 07:25AM

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

03/13/2022 at 01:39PM

52
#94 - vimgolfaccfekxh / @vimgolfaccfekxh

10/19/2022 at 03:28PM

52
#95 - Daniel Nettelfield / @DNIIBOY

12/11/2022 at 09:31PM

53
#96 - Jacob Puthipiroj / @puthipiroj

06/21/2022 at 09:17AM

54
#97 - BPA Free / @programneer

01/12/2023 at 07:07AM

54
#98 - Geek Boy / @Geek79

02/05/2023 at 04:36PM

55
#99 - POSIX / @po6ix

04/06/2022 at 01:05PM

55
#100 - Ratkovszki István / @RatkovszkiIstvn

09/05/2022 at 02:05PM

56
#101 - aalegrias / @aalegrias

03/25/2022 at 08:30PM

56
#102 - Moritz Kraus / @MoritzKraus4

09/03/2022 at 06:31PM

56
#103 - Van / @dangtrivan15

09/17/2022 at 12:00PM

57
#104 - ylv / @ylv_io

04/01/2022 at 10:08PM

57
#105 - Yannick / @Yannick88147038

07/19/2022 at 07:26PM

58
#106 - anonymouse / @anonymo65837183

04/03/2022 at 05:24PM

58
#107 - James Duffy / @jduffy3

04/09/2022 at 07:32PM

59
#108 - Nougatine Naja / @NougatineNaja

04/06/2022 at 11:42AM

59
#109 - 梅 / @umetosawara

04/09/2022 at 07:37AM

60
#110 - Fedleder / @fedleder

03/18/2022 at 09:12PM

61
#111 - dorianm / @dorianm

03/28/2022 at 04:27AM

62
#112 - hey / @jkijkftufty

05/06/2022 at 06:05PM

62
#113 - Ramil Gadzhiev / @RamiGaggi

08/27/2022 at 01:12PM

65
#114 - Strageslol / @Strageslol

06/03/2022 at 10:46AM

67
#115 - delnoch / @delnoch1

04/16/2022 at 05:50AM

70
#116 - Zachary Peterson / @zpeterson16

04/15/2022 at 05:01AM

72
#117 - サイシ / @tairar_314

05/08/2022 at 09:26PM

74
#118 - Andreas Aumann / @andreasaumann

03/20/2022 at 11:09AM

80
#119 - Cyber Security Daily News / @can_uygan

03/28/2022 at 11:36AM

80
#120 - djheidihoe / @djheidihoe1

07/18/2022 at 09:30PM