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

3923 active golfers, 14977 entries

Leaderboard (lowest score wins):
14
#1831 - Rune Warhuus / @DinkDonkNorway

01/21/2020 at 03:34PM

14
#1832 - Michael Meixner / @meixner62

01/22/2020 at 12:35PM

14
#1833 - Xiangzhuo Meng / @MengXiangzhuo

01/31/2020 at 04:33PM

14
#1834 - slawry00 / @slawry00

02/01/2020 at 01:21AM

14
#1835 - Michał / @MichalPiotrK

02/04/2020 at 02:20PM

14
#1836 - Sander Vanhove / @SanderVhove

02/05/2020 at 01:07PM

14
#1837 - Renns / @Renns95250521

02/08/2020 at 10:22AM

14
#1838 - Pietrino Atzeni / @beoboo

02/14/2020 at 08:54AM

14
#1839 - stretchy / @stretch11013132

02/15/2020 at 02:20PM

14
#1840 - novax / @novax22953288

02/16/2020 at 12:55PM

14
#1841 - Pham Tuan Anh / @anhpt379

02/16/2020 at 01:11PM

14
#1842 - vimgolf_tmp_1 / @1Vimgolf

02/16/2020 at 02:23PM

14
#1843 - Jason Chen / @chezbgone

02/18/2020 at 04:58AM

14
#1844 - brightlyopen / @brightlyopen

02/22/2020 at 08:23PM

14
#1845 - Strages / @Strages2k

02/23/2020 at 02:10AM

14
#1846 - golferN / @golferN3

02/25/2020 at 09:25PM

14
#1847 - Ryan Nevius / @ryannevius

03/16/2020 at 09:55AM

14
#1848 - Casey Rodarmor / @rodarmor

04/02/2020 at 04:00PM

14
#1849 - Nick Lee / @TooManyNickLees

04/04/2020 at 10:10PM

14
#1850 - RaylanFox / @RaylanFox

04/06/2020 at 06:15PM

14
#1851 - mackermann / @mackermann12

04/12/2020 at 07:21PM

14
#1852 - Toby de Havilland / @tobydeh

04/19/2020 at 08:52AM

14
#1853 - volandkit / @volandkit

04/20/2020 at 04:27PM

14
#1854 - まーしぃ🐢💨 / @marcymaplemug

04/26/2020 at 12:34PM

14
#1855 - John Sumner / @rjsumner

04/26/2020 at 07:50PM

14
#1856 - Rob Pilling / @bobrippling

04/28/2020 at 09:07AM

14
#1857 - Jens Nolte / @jens_n

04/28/2020 at 11:50PM

14
#1858 - dule2607 / @dule26071

05/02/2020 at 11:27AM

14
#1859 - Quentin Leroy / @qnleroy

05/08/2020 at 09:04AM

14
#1860 - Neil Earnshaw / @neilearnshaw

05/09/2020 at 05:33PM