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 5462e3f41198b80002512673

I forgot quotes

Oops.

Start file
foo = a
      ab
      abc
End file
foo = "a"
      "ab"
      "abc"

View Diff

1,3c1,3
< foo = a
<       ab
<       abc
---
> foo = "a"
>       "ab"
>       "abc"

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 3808 remaining solutions by signing in and submitting your own entry
#3809 x / @am_zzz_zzz - Score: 216 - 05/12/20 @ 07:30
llllllciw''<Esc>pjhlhciw''<Esc>pjhciw''<Esc>pkjuuuuuuciw'<C-R><C-O>"<C-H>"'<Esc>jjhciw'<C-R><C-O>"'<Esc>khhhlll.kh.jjhhvi'hluuuuuujjjlciw'<C-R><C-O>"'<Esc>ul.k.k.jjj:reg<CR>quuuuuukkv<Esc><Esc><C-V>jj:<Esc><Esc><Esc><Esc><Esc>jqk<C-V>jj:norm i'<C-V><Esc>A'<CR>khhhullllll<C-V>jjk<Esc>kciw"<Esc>pa"<Esc>uuujukkjlhkqaciw""<Esc>hpqj@aj@a:wq<CR>

0 comments


Created by: @udioica

3809 active golfers, 14487 entries

Leaderboard (lowest score wins):
19
#3211 - Netcraft Reporter / @NetcraftReport1

08/08/2018 at 02:39PM

19
#3212 - Kevin Cooler / @KevinCooler

08/10/2018 at 12:38AM

19
#3213 - Joey / @joeyism101

09/03/2018 at 01:43AM

19
#3214 - Hachemi / @HachemiHarizi

11/12/2018 at 10:54PM

19
#3215 - toddagibson / @toddagibson

12/23/2018 at 01:42AM

19
#3216 - Inge Becht / @IngeBecht

01/08/2019 at 06:49PM

19
#3217 - Zeming Lin / @ebetica

01/17/2019 at 07:52PM

19
#3218 - lofoneax / @lofoneax

01/23/2019 at 04:28AM

19
#3219 - Bart Barnard / @BartBarnard

01/30/2019 at 10:21AM

19
#3220 - henk / @henk22862224

01/30/2019 at 06:28PM

19
#3221 - LiterallyJustForVimGolf / @just_vim

02/04/2019 at 06:00PM

19
#3222 - Kyle Tilman / @kyletilman

03/10/2019 at 12:19AM

19
#3223 - The Joe / @computerjoe708

03/17/2019 at 04:27PM

19
#3224 - Vimfiz / @vimfiz

03/20/2019 at 10:19PM

19
#3225 - π™ΌπšŠπšžπš›πš’πšŒπš’πš˜ / @mauodias

04/17/2019 at 10:35PM

19
#3226 - woddy cyconer / @woddy1

04/22/2019 at 11:57AM

19
#3227 - Phoon / @justflashhim

05/10/2019 at 01:19PM

19
#3228 - Sam Houston / @shouston33

05/13/2019 at 03:57PM

19
#3229 - tllilleh / @tllilleh

05/15/2019 at 01:25AM

19
#3230 - Ninja Knife / @iNinjaknife

06/09/2019 at 10:54AM

19
#3231 - Floyd Gantt / @fgantt

06/28/2019 at 01:38AM

19
#3232 - Takayuki Sato / @yukitaka1974

06/28/2019 at 02:59PM

19
#3233 - Philip Stephenson / @philip_iv

07/19/2019 at 09:02PM

19
#3234 - VinΓ­cius Michelutti / @vinimichelutti

07/29/2019 at 01:45PM

19
#3235 - averageRandomPerson / @averageRandomP1

08/10/2019 at 10:45PM

19
#3236 - greengreen / @greengr09073862

09/01/2019 at 02:42PM

19
#3237 - Kjaku / @Kondziorf

09/04/2019 at 08:03PM

19
#3238 - Benjamin Pelletier / @benjipelletier

09/24/2019 at 05:42PM

19
#3239 - Lorenzo Bertolino / @lo_bertolino

09/25/2019 at 03:40PM

19
#3240 - Bruno Machado / @brunosmmachado

10/20/2019 at 12:15PM