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 4d22038df74d0b11490000fb

Return the cow

This cow is too verbose. Give it a lesson.

Start file
 ________________________________________
/ If you learn one useless thing every   \
| day, in a single year you'll learn 365 |
| useless things.                        |
\                   -- fortune | cowsay  /
 ----------------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
End file
 ________________________________________
/ If you learn one useless thing every   \
| day, in a single year you'll learn 365 |
| useless things.                        |
\                   -- fortune | cowsay  /
 ----------------------------------------
                    ^__^   /        
            _______/(oo)  /         
        /\/(       /(__)            
           | w----||                
           ||     ||

View Diff

7,11c7,11
<         \   ^__^
<          \  (oo)\_______
<             (__)\       )\/\
<                 ||----w |
<                 ||     ||
---
>                     ^__^   /        
>             _______/(oo)  /         
>         /\/(       /(__)            
>            | w----||                
>            ||     ||

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 21 remaining solutions by signing in and submitting your own entry
#22 Pedro Santos / pedrosans - Score: 113 - 02/21/14 @ 17:22
5jh<C-V>5j7lxGo<BS><Esc>p6kqq<C-V>5jx6j7lp06kq19qaq19@q<C-V>$x6jpk5dk:7,$g/./s/\\/\//g|s/)/(/g<CR>$bllDklyl$8pk8pbr)kr)$8pkl8p0jjwlr\ZZ

0 comments

#23 Timothée Gauthier / zmf_tim - Score: 118 - 07/09/13 @ 10:18
7G$<C-V>$G$A                        <Esc>20l<Right><C-V>G$xVG:rubydo $_.reverse!<CR>G10l<Left>D<Esc>7Gqaf\r/q+@a@a+@a@a@a^r/<Right>r\<Right><Right>r($F(r)<Up>r)F)r(<Down>r(ZZ

zmf_tim: Am I allowed to use :rubydo for vimgolf game ?

1 comment

#24 Chaitanya Desu / ChaituNu - Score: 130 - 05/17/14 @ 20:36
2/\^<CR>qahlklv$hyj$mapv`alr j$q3@al7G0qaC<C-O>:set revins<CR><C-R>"<Esc>jq3@a<C-V>5ll4kx2jf/v2k:s,\\,/,g<CR>lr\<C-V>kf):s,\V),(,g<CR>f(2;<C-V>kr)j^h3kj<C-V>GkjhhhhI  <Esc>ZZ

0 comments

#25 RobertT / techrt2050 - Score: 131 - 07/14/13 @ 07:02
G5Xk.wls w<Esc>Exr|16A <Esc>7Gs         <Esc>A   /<Esc>7A <Esc>a <Esc>j0wdwllllDhhhPbhxepr/I   <Esc>A  /<Esc>8A <Esc>u9A <Esc>j^d%A<Esc>p^s<BS><BS><BS>/\/(<Esc>^Xllllllllllllxxxhr/$12A <Esc>ZZ

0 comments

#26 Mohammad-Javad Izadi / mjizadi - Score: 132 - 01/05/11 @ 14:41
G11A <Esc>k.k8@ <Esc>8A <Esc>k12A <Esc>k20A <Esc>0<C-V>jjjjI*<Esc>qal<C-V>4jd0Pf*q20@a10@a10@a10@a<C-V>G$dGwlld$:s/<BS><BS>%s/)/x/g<CR>:%s/(/)/g<CR>:%s/x/(/g<CR>R/\/<Esc>f\r/k.f\r/kl.:wq<CR>

0 comments

#27 無ん垢の叫び / john_ababa - Score: 181 - 02/24/12 @ 10:18
6jdG:a!<CR>                    ^__^   /        <CR>            _______/(oo)  /         <CR>        /\/(       /(__)            <CR>           | w----||                <CR>           ||     ||<CR><Esc><Esc>ZZ

0 comments

Created by: ornicar

27 active golfers, 66 entries

Leaderboard (lowest score wins):
52
#1 - Urtica dioica / udioica

07/23/2012 at 09:40PM

52
#2 - Conner McDaniel / connermcd

11/29/2012 at 05:35PM

52
#3 - Petro Тrouq / zulolosi

06/04/2014 at 09:59PM

52
#4 - John Braxler / braxler

10/24/2014 at 03:56PM

55
#5 - Justin Love / wondible

08/14/2011 at 06:50PM

55
#6 - ———đίxίє—flαтlίиє——— / _dixie_flatline

07/21/2013 at 08:13PM

55
#7 - John Meisner / jmeisned

06/25/2014 at 03:13PM

56
#8 - Kerson Hsiao / KersonHsiao

07/23/2012 at 07:26AM

56
#9 - hiding / I_haveno_name

10/04/2013 at 12:55AM

57
#10 - Hu Junfeng / junfeng

07/27/2011 at 10:43AM

58
#11 - Matthew Draper / _matthewd

01/04/2011 at 03:38AM

58
#12 - You-Siang Lin / yslinnctu

12/04/2011 at 02:47AM

64
#13 - Glenn / spamcow_moo

01/03/2011 at 11:18PM

65
#14 - Aurélien Delahaye / alkove

01/04/2011 at 10:25PM

69
#15 - Tim Chase / gumnos

01/03/2011 at 09:20PM

70
#16 - Renat Aksitov / Korvin79

03/04/2012 at 12:06PM

82
#17 - Reef / Sir_Reef

08/11/2015 at 09:54PM

96
#18 - Roger Bongers / RogerBongers

10/22/2013 at 08:58PM

98
#19 - Nabi Studios / Toribash

03/28/2014 at 07:33AM

99
#20 - Pete Johns / johnsyweb

01/10/2011 at 07:47PM

104
#21 - tacr / tacr4

02/03/2014 at 04:35PM

113
#22 - Pedro Santos / pedrosans

02/21/2014 at 05:22PM

118
#23 - Timothée Gauthier / zmf_tim

07/09/2013 at 10:18AM

130
#24 - Chaitanya Desu / ChaituNu

05/17/2014 at 08:36PM

131
#25 - RobertT / techrt2050

07/14/2013 at 07:02AM

132
#26 - Mohammad-Javad Izadi / mjizadi

01/05/2011 at 02:41PM

181
#27 - 無ん垢の叫び / john_ababa

02/24/2012 at 10:18AM