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
#1771 - Chris Covert / @covertcj

11/07/2019 at 07:50PM

14
#1772 - Ebi / @ehan6

11/10/2019 at 12:44PM

14
#1773 - pysnow530 / @pysnow530

11/19/2019 at 05:21AM

14
#1774 - bassnecter / @lothedr

11/23/2019 at 08:36AM

14
#1775 - Nicolas Pagny / @NicolasPagny

12/03/2019 at 01:55PM

14
#1776 - 990 / @nisibasi990

12/04/2019 at 02:37PM

14
#1777 - HypoTech / @Obongoetco

12/07/2019 at 10:07PM

14
#1778 - King Kang / @nobagtravel

12/11/2019 at 12:04AM

14
#1779 - Jason Neylon / @jasonneylon

12/15/2019 at 12:38PM

14
#1780 - Dan Kilman / @dan_kilman

12/18/2019 at 05:11PM

14
#1781 - Simon / @Simon79318261

12/21/2019 at 01:12PM

14
#1782 - 이종혁 / @BluePaisa

12/28/2019 at 10:20AM

14
#1783 - JimmyGymglish / @JGymglish

01/02/2020 at 09:38AM

14
#1784 - Moye_ / @moye_

01/06/2020 at 11:16PM

14
#1785 - Lars Haalck / @larshulk

01/08/2020 at 11:33AM

14
#1786 - Halfdan S. Bechmann / @HalfdanIsLame

01/13/2020 at 02:21PM

14
#1787 - jackjsk / @jackjsk1

01/17/2020 at 05:08AM

14
#1788 - く / @noblack_nolife

01/21/2020 at 09:15AM

14
#1789 - Rune Warhuus / @DinkDonkNorway

01/21/2020 at 03:34PM

14
#1790 - Michael Meixner / @meixner62

01/22/2020 at 12:35PM

14
#1791 - Xiangzhuo Meng / @MengXiangzhuo

01/31/2020 at 04:33PM

14
#1792 - slawry00 / @slawry00

02/01/2020 at 01:21AM

14
#1793 - Michał / @MichalPiotrK

02/04/2020 at 02:20PM

14
#1794 - Sander Vanhove / @SanderVhove

02/05/2020 at 01:07PM

14
#1795 - Renns / @Renns95250521

02/08/2020 at 10:22AM

14
#1796 - Pietrino Atzeni / @beoboo

02/14/2020 at 08:54AM

14
#1797 - stretchy / @stretch11013132

02/15/2020 at 02:20PM

14
#1798 - novax / @novax22953288

02/16/2020 at 12:55PM

14
#1799 - Pham Tuan Anh / @anhpt379

02/16/2020 at 01:11PM

14
#1800 - vimgolf_tmp_1 / @1Vimgolf

02/16/2020 at 02:23PM