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

3922 active golfers, 14974 entries

Leaderboard (lowest score wins):
14
#1711 - Andreas Nordahl / @andreasnordahl

11/14/2018 at 04:56PM

14
#1712 - 황규승 / @l5pBHyytJBu9SIC

11/16/2018 at 03:19PM

14
#1713 - Levi Self / @LeviRSelf

11/18/2018 at 08:38AM

14
#1714 - PJ Frazer / @pj_frazer

11/24/2018 at 08:21PM

14
#1715 - Matze / @ebaharilikult

11/25/2018 at 08:55AM

14
#1716 - Lucas Nussbaum / @LucasNussbaum

11/30/2018 at 10:20PM

14
#1717 - Marten Ringwelski / @Marteon27

12/08/2018 at 06:39PM

14
#1718 - Marty Boren / @beanmaximalist

12/11/2018 at 03:30AM

14
#1719 - sjyu / @sjyu12

12/13/2018 at 02:37AM

14
#1720 - Mike / @xxxx457656455xx

12/13/2018 at 04:34AM

14
#1721 - Théo / @Theodnls

12/17/2018 at 02:17PM

14
#1722 - xwlearn / @ixw1991

12/18/2018 at 05:00PM

14
#1723 - guxbug / @guxbug1

12/19/2018 at 03:24AM

14
#1724 - TimMcGuire / @mcguire

12/22/2018 at 03:23PM

14
#1725 - Sebastien Nicoud / @sebnukem

12/23/2018 at 12:50AM

14
#1726 - Nikos Koukis / @bergercookie12

01/03/2019 at 05:28PM

14
#1727 - Brome / @Brome20887421

01/04/2019 at 09:40PM

14
#1728 - pankaj singh / @pankajsingh013

01/11/2019 at 04:20PM

14
#1729 - wrglprmft / @wrglprmft

01/19/2019 at 09:04PM

14
#1730 - 강현 / @Applesquiz

01/20/2019 at 11:13PM

14
#1731 - Daniel Steinberg / @dstein64

01/28/2019 at 04:27AM

14
#1732 - churaki / @churaki

01/29/2019 at 03:49PM

14
#1733 - Adrien Plaçais / @AdrienPlcs

01/31/2019 at 12:02PM

14
#1734 - Rasmus Bergström / @JRasmusBm

02/02/2019 at 04:43PM

14
#1735 - Michael Aquilina / @mikeaquilina4

02/02/2019 at 09:18PM

14
#1736 - Mac Goever / @MacGoever

02/04/2019 at 09:17PM

14
#1737 - ieranstoiranstyu32npoierasnt / @ieranstoiranst1

02/08/2019 at 06:54PM

14
#1738 - Christopher Weyand / @swordman378

02/11/2019 at 02:05PM

14
#1739 - ahm4711 / @ahm4711

03/01/2019 at 03:20PM

14
#1740 - Chris AtLee / @chrisatlee

03/01/2019 at 10:14PM