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

3806 active golfers, 14477 entries

Leaderboard (lowest score wins):
14
#1531 - Zdravko Colic / @virtual_key

08/17/2016 at 08:03PM

14
#1532 - jj johnson / @jcassj1

08/22/2016 at 11:33AM

14
#1533 - Krzysztof Borkowski / @smiechowy

09/03/2016 at 12:30PM

14
#1534 - Raj / @rjindel

09/17/2016 at 11:48PM

14
#1535 - Christian Albertsen / @mannahusum

09/20/2016 at 05:08PM

14
#1536 - Daniel Bellenger / @DanielBellenger

09/24/2016 at 11:30PM

14
#1537 - Netrisk Cool / @C00lt0

09/29/2016 at 06:00PM

14
#1538 - Shashwat Raghuvanshi / @Shashwat_sr123

10/19/2016 at 09:06AM

14
#1539 - Domus Code / @DomusCode

10/19/2016 at 10:02AM

14
#1540 - Christoph F. Seelus / @cseelus

10/26/2016 at 03:44AM

14
#1541 - Pierre Sugar / @sugaryourcoffex

10/28/2016 at 09:56PM

14
#1542 - John Hassell / @jhassell

11/07/2016 at 03:07PM

14
#1543 - Jonathan Lao-Kan / @jlaokan

11/10/2016 at 06:35AM

14
#1544 - Sergio / @voyeg3r

11/23/2016 at 07:30PM

14
#1545 - Dillon Kearns / @dillontkearns

11/26/2016 at 05:35AM

14
#1546 - Bill Booth / @ohiopyle

11/27/2016 at 09:26AM

14
#1547 - sat0b / @sat0b

12/02/2016 at 02:44PM

14
#1548 - Никита Канунников / @NIikitaK

12/04/2016 at 08:49PM

14
#1549 - Marcel Akkerman / @MarcelAkkerman

12/21/2016 at 12:22PM

14
#1550 - Lieuwe Rooijakkers / @LieuweR

01/12/2017 at 09:46PM

14
#1551 - Air Quality Test 8 / @AirQualityTest8

01/15/2017 at 09:27AM

14
#1552 - Ghost of Juan Pierre / @GhostJuanPierre

02/02/2017 at 05:19PM

14
#1553 - Matthieu Honel / @ocus

03/10/2017 at 04:18PM

14
#1554 - xwle / @xwle

03/11/2017 at 01:49PM

14
#1555 - Cougar / @__Cougar__

03/11/2017 at 09:29PM

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

03/13/2017 at 08:38PM

14
#1557 - Colin Jacobs / @coljac

03/14/2017 at 05:24AM

14
#1558 - caplod / @caplod

03/24/2017 at 04:14PM

14
#1559 - Dhruva Sagar / @dhruvasagar

04/03/2017 at 06:22AM

14
#1560 - chamow / @sbakeugs

04/04/2017 at 10:41AM