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

4060 active golfers, 15536 entries

Leaderboard (lowest score wins):
12
#1261 - ymmtmdk / @ymmtmdk

09/04/2016 at 12:08PM

12
#1262 - Ameer Ayoub / @magicmeeror

09/17/2016 at 07:17PM

12
#1263 - Igor Czerwinski / @igoratron

10/20/2016 at 10:42PM

12
#1264 - Put me on your list tyrants / @electronjunkie

10/23/2016 at 07:22PM

12
#1265 - Jakob / @jajob

10/28/2016 at 02:42PM

12
#1266 - yorkbai / @baiyqmzqbl

11/14/2016 at 10:23AM

12
#1267 - Roey Berman / @ManBergundyPig

12/15/2016 at 09:51PM

12
#1268 - Martin Henriksen / @Baaaallz

12/28/2016 at 08:17PM

12
#1269 - Avimgolfer / @l718232

01/30/2017 at 05:04AM

12
#1270 - eban / @eban

02/17/2017 at 01:59PM

12
#1271 - Max M / @_maxmel

02/22/2017 at 10:08PM

12
#1272 - jack / @jack28887741

02/24/2017 at 02:45PM

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

02/28/2017 at 08:52PM

12
#1274 - Raymond Chee / @rchomium

03/05/2017 at 05:35AM

12
#1275 - Russell Ball / @rtball2

03/05/2017 at 10:15PM

12
#1276 - Dimitar Ivanov / @dimisthoughts

03/11/2017 at 01:45AM

12
#1277 - saffronsnail / @saffsnail

03/14/2017 at 05:41PM

12
#1278 - Dmitriy / @dm_alt

04/08/2017 at 11:42AM

12
#1279 - 20speedvegan / @ashkevinm

04/13/2017 at 07:59PM

12
#1280 - Eric Bock / @ericbock

05/01/2017 at 06:19PM

12
#1281 - Stefan Uhl / @der_wuschl

05/02/2017 at 09:30AM

12
#1282 - Clement Keirua / @clemkeirua

05/06/2017 at 01:56PM

12
#1283 - Kyouma / @kyoumaJohn

05/19/2017 at 01:29PM

12
#1284 - jakeroberts / @jakeroberts

05/19/2017 at 01:50PM

12
#1285 - kkh / @kkhdlut

06/03/2017 at 07:32AM

12
#1286 - シカ / @pigaccel

06/09/2017 at 12:43AM

12
#1287 - moritz / @moritz45081535

06/18/2017 at 01:16PM

12
#1288 - YamasakiKenta / @ymknjugg

06/24/2017 at 09:37AM

12
#1289 - Jacob Buete / @JBuete

07/04/2017 at 12:41AM

12
#1290 - Julian Felix / @h4wked

07/06/2017 at 01:37PM