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):
17
#2881 - 鏡崎ましろ / @KagamisakiMsr

12/26/2019 at 08:24AM

17
#2882 - Jerry Zhu / @xpost2000games

01/21/2020 at 03:40AM

17
#2883 - Łukasz / @_pixsll

01/22/2020 at 07:52AM

17
#2884 - Jonah Hlastala / @JonahHlastala

01/23/2020 at 07:36PM

17
#2885 - Paul Joshy / @pauljoshyk96

01/24/2020 at 07:28AM

17
#2886 - Schachmett / @schachmett

01/26/2020 at 12:55AM

17
#2887 - Jon Crowe / @joncrowe

01/27/2020 at 02:44PM

17
#2888 - Nik C / @nikclarx

01/28/2020 at 12:46AM

17
#2889 - Chris League / @chrisleague

02/22/2020 at 09:35PM

17
#2890 - samet ぷ / @jssamet

03/14/2020 at 08:01PM

17
#2891 - fedja golf / @FedjaGolf

04/13/2020 at 01:24AM

17
#2892 - mopery blue / @moperyblue10

04/13/2020 at 10:21PM

17
#2893 - David Bragmark / @DBragmark

04/29/2020 at 03:41PM

17
#2894 - nick / @Xp_Bar

05/04/2020 at 06:24PM

17
#2895 - Nick Garcia / @NicksIdeas

05/06/2020 at 02:58AM

17
#2896 - StormTheWyvern / @Dragon77Scaly

05/09/2020 at 01:18PM

17
#2897 - Soumadeep Saha / @SoumadeepSaha8

05/10/2020 at 02:55AM

17
#2898 - Wayne / @lilwayne15561

05/22/2020 at 03:19AM

17
#2899 - Ethan Zimbelman / @zimboboys

08/27/2020 at 12:38AM

17
#2900 - Tokunaga Isa / @Lajansaa

09/15/2020 at 08:30AM

18
#2901 - Alexandre Ignjatovic / @bankair

11/12/2014 at 08:08AM

18
#2902 - timrich / @timrich

11/12/2014 at 03:04PM

18
#2903 - Unai Orbe / @uorbe001

11/13/2014 at 04:25PM

18
#2904 - Bart / @oneofmanybarts

11/14/2014 at 09:08AM

18
#2905 - jiangchuan / @tommy_he

11/15/2014 at 06:16AM

18
#2906 - Greg / @developergreg

11/19/2014 at 02:58PM

18
#2907 - John Mahowald / @JohnMahowald

11/23/2014 at 07:48AM

18
#2908 - Nicolas Dascanio / @NicoDascanio

11/25/2014 at 07:37PM

18
#2909 - Katie Li / @ryfgvb

11/28/2014 at 09:19PM

18
#2910 - Dave C / @dmlc133

12/06/2014 at 07:12PM