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
#2941 - ahumph / @ahumph

06/05/2015 at 10:34AM

18
#2942 - j00b00 / @j00b00

06/17/2015 at 11:29PM

18
#2943 - Cormac Relf / @cormacrelf

06/29/2015 at 03:52AM

18
#2944 - Joshua Simmons / @MmnJoshua

07/01/2015 at 08:49PM

18
#2945 - Olik / @oli33k

07/15/2015 at 01:41PM

18
#2946 - Crystal Qian / @cjqian

07/16/2015 at 05:44PM

18
#2947 - Ignacio Chavez / @nashio

08/17/2015 at 05:45AM

18
#2948 - Ryan McNulty / @catalyst294

08/26/2015 at 03:46AM

18
#2949 - Léo S / @LeoSauvaget

08/28/2015 at 06:46PM

18
#2950 - Radoslav Ivanov / @rivanov1

09/15/2015 at 12:16AM

18
#2951 - Filype Pereira / @FilypePereira

09/23/2015 at 11:19PM

18
#2952 - No Holiness / @NoHoliness

09/29/2015 at 08:33PM

18
#2953 - ggdGiBork:3^[:wq / @CopperBadger

10/06/2015 at 12:52AM

18
#2954 - Pin / @ponfelipon

10/06/2015 at 09:25PM

18
#2955 - ren / @wxoc

10/11/2015 at 03:00AM

18
#2956 - Rafeh Qazi / @RafehQ

10/11/2015 at 09:58AM

18
#2957 - g10181255 / @g10181255

10/15/2015 at 11:54AM

18
#2958 - Gerald Tilma / @GeraldTilma

10/23/2015 at 01:11AM

18
#2959 - Maciej Jabłoński / @j4b0l

10/28/2015 at 09:42PM

18
#2960 - Anand Ghorpade / @snort_snort

10/30/2015 at 02:26PM

18
#2961 - amol khatri / @khatri_amol

11/02/2015 at 12:10PM

18
#2962 - Steve Cook / @RevBooyah

11/04/2015 at 09:11PM

18
#2963 - Arthur Brown / @skeidsberget

11/05/2015 at 09:51PM

18
#2964 - Nicolas Nistal / @niconistal

11/19/2015 at 12:14AM

18
#2965 - Holden Lewis / @lonnez90

12/02/2015 at 08:15PM

18
#2966 - Yann Colina / @YannColina

12/05/2015 at 01:06AM

18
#2967 - Paul D. Kang / @pauldakang

12/08/2015 at 10:56PM

18
#2968 - Shota Bakuradze / @headshota1989

12/14/2015 at 11:26PM

18
#2969 - twenty2twoss / @twenty2twoss

12/29/2015 at 06:11PM

18
#2970 - Shalldök / @shalldoek

01/15/2016 at 02:56AM