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
#1621 - DHM / @DHM29978992

04/09/2018 at 06:54PM

14
#1622 - nomsayin / @nomsayin

04/15/2018 at 06:51PM

14
#1623 - jet / @jameslintaylor

04/20/2018 at 03:21AM

14
#1624 - johnkershaw / @johnkershaw

04/20/2018 at 03:40AM

14
#1625 - unkiwii / @unkiwii0

05/03/2018 at 05:47PM

14
#1626 - Cosmic Frog / @Cozmicfrog

05/04/2018 at 10:09AM

14
#1627 - mohit / @mohit74512835

05/07/2018 at 05:32PM

14
#1628 - Kaydo Alders / @Yousousen

05/07/2018 at 08:50PM

14
#1629 - Rakesh P / @rakeshpgopal

05/21/2018 at 06:26AM

14
#1630 - Tom Ient / @tom_ient

05/24/2018 at 06:12PM

14
#1631 - Rahul Gupta 🎹 / @pezcoder

05/31/2018 at 08:17PM

14
#1632 - Plexigras / @plexigras

06/02/2018 at 06:39PM

14
#1633 - STRIKER-san / @frstrikersan

06/05/2018 at 09:58AM

14
#1634 - Vimg / @Vimg10

06/06/2018 at 11:02AM

14
#1635 - Dylan Nelson / @dlnnlsn

06/08/2018 at 02:19AM

14
#1636 - もりお / @9nACjtcQ2NL0Va4

06/08/2018 at 08:20AM

14
#1637 - Norbert / @mullno

06/22/2018 at 05:24PM

14
#1638 - David Sweetman / @d_sweetman

07/02/2018 at 01:28AM

14
#1639 - Alej / @mephl

07/02/2018 at 05:07AM

14
#1640 - steph-query / @StephQuery

07/19/2018 at 12:45AM

14
#1641 - Koo Zhengqun / @zhengqunkoo

07/27/2018 at 08:05AM

14
#1642 - Alex Brasser / @Alex_Brasser

07/31/2018 at 02:08PM

14
#1643 - Hunter Tidwell / @hunter2tidwell

08/01/2018 at 12:53AM

14
#1644 - chaotic / @laersn

08/02/2018 at 01:09PM

14
#1645 - Foo Bar / @FooBarely

08/03/2018 at 03:06PM

14
#1646 - Theo Andersen Carton / @TheoAndersen

08/07/2018 at 06:41PM

14
#1647 - Akira Matsuda / @a_matsuda

08/15/2018 at 06:43AM

14
#1648 - Praful / @praful_kapadia

08/16/2018 at 04:50PM

14
#1649 - Charles Sun / @charles_sun90

08/17/2018 at 03:15PM

14
#1650 - Тёма / @Timon_Surikat

08/18/2018 at 11:50PM