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):
18
#2971 - KongFu / @_kongfu

01/16/2016 at 09:57AM

18
#2972 - Zhiqian Yuan / @NordicWing

01/23/2016 at 11:08AM

18
#2973 - Chris Elston / @CAElston

01/30/2016 at 12:12AM

18
#2974 - Durga Swaroop Perla / @durgaswaroop

02/03/2016 at 04:22PM

18
#2975 - K Aravind Kumar / @ezbi_124

02/06/2016 at 06:17PM

18
#2976 - Riz Joj / @rizjoj

02/06/2016 at 11:53PM

18
#2977 - Sebastian Pardo / @sebpardo

02/17/2016 at 10:47PM

18
#2978 - Omer Lachish / @rauchy

02/21/2016 at 11:09AM

18
#2979 - Alexander Myltsev / @Alex_Myltsev

02/23/2016 at 04:35PM

18
#2980 - Joseph Abrahams / @josephabrahams

02/26/2016 at 09:25PM

18
#2981 - Aviv Cukierman / @AvivCukierman

02/26/2016 at 10:23PM

18
#2982 - trilliam gibson / @_useff

03/24/2016 at 05:01PM

18
#2983 - Alex Ch / @_AlexCh_

04/02/2016 at 06:14PM

18
#2984 - ZHANG Chao / @zhangchao2414

04/04/2016 at 10:08AM

18
#2985 - Georg Grauberger / @GeorgGrauberger

04/18/2016 at 02:19PM

18
#2986 - Champion Pierre / @Pierre_darkirus

04/18/2016 at 02:29PM

18
#2987 - Stefan Niculae / @stefyvolt

04/23/2016 at 06:11PM

18
#2988 - L3viathan / @L3viathan2142

04/28/2016 at 05:07PM

18
#2989 - Jon E. Eguiluz / @viroide

05/24/2016 at 01:04PM

18
#2990 - Kenny Lau / @kkkennnny

06/01/2016 at 10:23AM

18
#2991 - Alexandre Lion / @lnalx

06/04/2016 at 02:03PM

18
#2992 - malet / @Malet

06/23/2016 at 02:04PM

18
#2993 - Banos / @deep_spoon

07/01/2016 at 11:45AM

18
#2994 - Ryan van Rensburg / @rdvr001

07/18/2016 at 04:23PM

18
#2995 - Morgan L / @lieberthal

07/20/2016 at 07:00PM

18
#2996 - George Angelopoulos / @g_usermod

08/04/2016 at 07:40PM

18
#2997 - Micha / @michman89

08/08/2016 at 12:33PM

18
#2998 - Assaf Lavi / @assaflavi

08/10/2016 at 07:24AM

18
#2999 - Rosalie Tolentino / @rosatolen

08/14/2016 at 09:28PM

18
#3000 - Climate Worries / @climateworries

08/24/2016 at 08:18PM