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

3761 active golfers, 14294 entries

Leaderboard (lowest score wins):
11
#1111 - chocolate / @chocola81394123

06/02/2020 at 02:47PM

12
#1112 - Matt / @mcr05

01/18/2015 at 07:59PM

12
#1113 - Alexey Kotov / @atercat

07/23/2015 at 12:46PM

12
#1114 - Christophe Sicard / @tophsic

08/23/2015 at 05:15AM

12
#1115 - Nicholas Marrone / @nickmarrone

09/05/2015 at 09:52PM

12
#1116 - Jon Nyman / @NymanJon

09/12/2015 at 08:54AM

12
#1117 - Jack Z / @itszhou

10/08/2015 at 04:32PM

12
#1118 - coltruindie / @e10nevwa

10/13/2015 at 11:20PM

12
#1119 - DespicableJerk / @JerkDespicable

10/20/2015 at 06:56AM

12
#1120 - Nick Miller / @ItsMeNickMiller

10/24/2015 at 08:05PM

12
#1121 - Bowen Deng / @DavidBdeng

11/06/2015 at 05:03AM

12
#1122 - NuM / @NuM314

11/07/2015 at 10:09AM

12
#1123 - Nam Net / @tafopigibi

11/07/2015 at 07:59PM

12
#1124 - Dane Summers / @dsummersl

11/15/2015 at 02:59PM

12
#1125 - Ryan Marcotte / @ryanjmarcotte

11/15/2015 at 05:40PM

12
#1126 - territorialmale / @territorialmale

11/18/2015 at 05:00PM

12
#1127 - emblox / @emblox

11/19/2015 at 10:03PM

12
#1128 - SK Liew / @liewsk

11/20/2015 at 02:28AM

12
#1129 - rantelo / @rantelo7

11/23/2015 at 09:39PM

12
#1130 - Aaron Blair / @sycrat

11/29/2015 at 10:56PM

12
#1131 - Steve Bitner / @fourbitbots

11/30/2015 at 03:52AM

12
#1132 - Jiahan Wang / @hijiahanwang123

12/04/2015 at 11:44PM

12
#1133 - Charlie / @wookie_giant

12/20/2015 at 12:15AM

12
#1134 - najeem / @najeem

12/20/2015 at 06:22PM

12
#1135 - Oisin Carroll / @oisincar

01/03/2016 at 08:46PM

12
#1136 - retro / @tryphopp

01/11/2016 at 04:23AM

12
#1137 - Lindsay Swift / @_lindsai_

01/17/2016 at 07:41PM

12
#1138 - Robert Mosher / @rcmosher

01/24/2016 at 08:28PM

12
#1139 - Rubén Chavarría T. / @rchavarriat

02/16/2016 at 08:10AM

12
#1140 - Peeby Thirtyone / @peeby31

02/21/2016 at 11:10AM