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

3920 active golfers, 14968 entries

Leaderboard (lowest score wins):
14
#1591 - Никита Канунников / @NIikitaK

12/04/2016 at 08:49PM

14
#1592 - Marcel Akkerman / @MarcelAkkerman

12/21/2016 at 12:22PM

14
#1593 - Lieuwe Rooijakkers / @LieuweR

01/12/2017 at 09:46PM

14
#1594 - Air Quality Test 8 / @AirQualityTest8

01/15/2017 at 09:27AM

14
#1595 - Ghost of Juan Pierre / @GhostJuanPierre

02/02/2017 at 05:19PM

14
#1596 - Matthieu Honel / @ocus

03/10/2017 at 04:18PM

14
#1597 - xwle / @xwle

03/11/2017 at 01:49PM

14
#1598 - Cougar / @__Cougar__

03/11/2017 at 09:29PM

14
#1599 - Михаил Борисов / @npoKA3Hbuk

03/13/2017 at 08:38PM

14
#1600 - Colin Jacobs / @coljac

03/14/2017 at 05:24AM

14
#1601 - caplod / @caplod

03/24/2017 at 04:14PM

14
#1602 - Dhruva Sagar / @dhruvasagar

04/03/2017 at 06:22AM

14
#1603 - chamow / @sbakeugs

04/04/2017 at 10:41AM

14
#1604 - :q / @AndyColonQ

04/17/2017 at 11:19PM

14
#1605 - Colby Hamilton / @ColbyHamilton5

04/18/2017 at 06:13PM

14
#1606 - Juha Paatelma / @jpaatelm

04/20/2017 at 09:25AM

14
#1607 - Boris Brodski / @BorisBrodski

05/03/2017 at 08:27AM

14
#1608 - Wang Wu / @rubepeg

05/11/2017 at 12:46PM

14
#1609 - Abin Simon / @meain_

06/05/2017 at 06:27PM

14
#1610 - だださω / @kdaiki211

06/07/2017 at 04:46PM

14
#1611 - Anthony George / @Xanuthatusu

06/09/2017 at 05:37PM

14
#1612 - あいす / @iScream31

06/12/2017 at 08:39AM

14
#1613 - John Smith / @john828495

06/16/2017 at 02:20PM

14
#1614 - John Smith / @johns32768

06/16/2017 at 06:48PM

14
#1615 - Daniel Smith / @_Tysonzero

06/22/2017 at 05:42PM

14
#1616 - Gurukandhamoorthi / @Gurukandhamoor1

07/09/2017 at 02:23PM

14
#1617 - Conrad / @Conrad55084958

08/11/2017 at 10:19PM

14
#1618 - NOT Takinashi / @TaleLore

08/25/2017 at 05:38PM

14
#1619 - Daniel Wang / @npbool

08/29/2017 at 12:54PM

14
#1620 - Jeremy Huiskamp / @jeremyhuiskamp

09/01/2017 at 08:05PM