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):
12
#1171 - Roey Berman / @ManBergundyPig

12/15/2016 at 09:51PM

12
#1172 - Martin Henriksen / @Baaaallz

12/28/2016 at 08:17PM

12
#1173 - Avimgolfer / @l718232

01/30/2017 at 05:04AM

12
#1174 - eban / @eban

02/17/2017 at 01:59PM

12
#1175 - Max M / @_maxmel

02/22/2017 at 10:08PM

12
#1176 - jack / @jack28887741

02/24/2017 at 02:45PM

12
#1177 - Márton Németh / @nemarci42

02/28/2017 at 08:52PM

12
#1178 - Raymond Chee / @rchomium

03/05/2017 at 05:35AM

12
#1179 - Russell Ball / @rtball2

03/05/2017 at 10:15PM

12
#1180 - Dimitar Ivanov / @dimisthoughts

03/11/2017 at 01:45AM

12
#1181 - saffronsnail / @saffsnail

03/14/2017 at 05:41PM

12
#1182 - Dmitriy / @dm_alt

04/08/2017 at 11:42AM

12
#1183 - 20speedvegan / @ashkevinm

04/13/2017 at 07:59PM

12
#1184 - Eric Bock / @ericbock

05/01/2017 at 06:19PM

12
#1185 - Stefan Uhl / @der_wuschl

05/02/2017 at 09:30AM

12
#1186 - Clement Keirua / @clemkeirua

05/06/2017 at 01:56PM

12
#1187 - Kyouma / @kyoumaJohn

05/19/2017 at 01:29PM

12
#1188 - jakeroberts / @jakeroberts

05/19/2017 at 01:50PM

12
#1189 - kkh / @kkhdlut

06/03/2017 at 07:32AM

12
#1190 - シカ / @pigaccel

06/09/2017 at 12:43AM

12
#1191 - moritz / @moritz45081535

06/18/2017 at 01:16PM

12
#1192 - YamasakiKenta / @ymknjugg

06/24/2017 at 09:37AM

12
#1193 - Jacob Buete / @JBuete

07/04/2017 at 12:41AM

12
#1194 - Julian Felix / @h4wked

07/06/2017 at 01:37PM

12
#1195 - Rowan Tree / @RowanTr88447528

07/21/2017 at 10:23AM

12
#1196 - Plop plop / @plopplopplop6

08/07/2017 at 07:59PM

12
#1197 - Jonathan Eidsness / @jonathaneidsnes

08/11/2017 at 10:31PM

12
#1198 - SirVimGolf / @SirVimGolf

08/23/2017 at 08:56PM

12
#1199 - Marc Grimpo / @MarcGrimpo

08/26/2017 at 11:27AM

12
#1200 - Connor O'Brien / @swiftest_panda

08/26/2017 at 08:32PM