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):
10
#661 - Ryan Miller / @andRyanMiller

12/14/2017 at 10:43PM

10
#662 - Henrique Malheiro / @rike09

12/15/2017 at 06:51PM

10
#663 - Михаил Сурин / @realssmike

12/16/2017 at 10:39PM

10
#664 - Sage san / @sagesancast

12/18/2017 at 11:24AM

10
#665 - Elliott Bignell / @ElliottCBi

12/22/2017 at 01:56PM

10
#666 - Edward / @GLineEdward

12/23/2017 at 04:07PM

10
#667 - あっつぉ / @tadokorohitoshi

12/26/2017 at 02:30AM

10
#668 - Floch Geoffrey / @floch_geoffrey

12/30/2017 at 10:27AM

10
#669 - BarbaJol / @drpproteus

12/30/2017 at 01:10PM

10
#670 - Sebastian Müller / @echsberde

01/06/2018 at 05:18PM

10
#671 - maks kamnikar / @maks_kamnikar

01/07/2018 at 10:41PM

10
#672 - Alphonse Mariya / @alfunx

01/08/2018 at 06:04PM

10
#673 - Wilson Chang / @ckwojai

01/11/2018 at 08:34AM

10
#674 - ParasamGateZero / @ParasamGateZero

01/14/2018 at 03:38AM

10
#675 - TpouHuK / @TpouHuK_

01/15/2018 at 02:38PM

10
#676 - Gavin Cox / @gavinjcox

01/15/2018 at 03:24PM

10
#677 - Ian Isaac Emnace / @29forte95

01/16/2018 at 07:55AM

10
#678 - LungZeno / @LungZenoOpen

01/18/2018 at 11:27AM

10
#679 - Eli / @maxprkr

01/25/2018 at 11:59AM

10
#680 - thadeuszlay / @thadeuszlay

01/28/2018 at 06:47PM

10
#681 - Michael Vanier / @mvanier42

01/28/2018 at 09:22PM

10
#682 - 陈振宇 / @1243065115

01/31/2018 at 12:20PM

10
#683 - Harshdeep Kanhai / @HarshdeepKanhai

02/01/2018 at 02:44PM

10
#684 - to.cd.tw / @to_cd_tw

02/01/2018 at 04:18PM

10
#685 - Hector Ricardo / @Hector_Ricardo3

02/02/2018 at 06:29AM

10
#686 - martin tourneboeuf / @martintournebo1

02/04/2018 at 11:13AM

10
#687 - Herz3h / @Herz3h

02/04/2018 at 09:38PM

10
#688 - Romain D. / @r_dulery

02/05/2018 at 07:31PM

10
#689 - DunkingKruger / @DunkingKruger

02/08/2018 at 04:44AM

10
#690 - Ondřej Soukup / @goodQuestion_or

02/11/2018 at 09:30PM