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

3800 active golfers, 14455 entries

Leaderboard (lowest score wins):
19
#3151 - Lajos Koszti / @Ajnasz

11/29/2015 at 03:05PM

19
#3152 - stephencheng / @stephencheng

12/03/2015 at 12:51PM

19
#3153 - Rootul Patel / @rootulp

12/10/2015 at 10:12PM

19
#3154 - andrei / @CebotariAndrei

12/27/2015 at 10:33AM

19
#3155 - Alexander Ryzhikov / @Coobaha

01/05/2016 at 06:55PM

19
#3156 - 戸田 薫 / @KaoruToda

01/10/2016 at 04:39AM

19
#3157 - Chu-Pan Wong / @chupanwong

01/28/2016 at 07:49PM

19
#3158 - dattaz / @dat_taz

02/07/2016 at 09:48PM

19
#3159 - Arthur Karganyan / @arthurkarganyan

02/25/2016 at 06:13PM

19
#3160 - Luke Warlik / @luke_warlik

03/06/2016 at 06:54PM

19
#3161 - Panashe M Fundira / @PFundz

05/20/2016 at 02:47AM

19
#3162 - Noobinator Noob / @noobinator69

06/21/2016 at 06:03PM

19
#3163 - Thongrapee / @kulaspa2

07/25/2016 at 05:13AM

19
#3164 - Sp3000 / @sp3katron

08/23/2016 at 09:41AM

19
#3165 - Patrick J McDonough / @snake_VsCamel

09/05/2016 at 03:27AM

19
#3166 - Allen Gooch / @mojochao

09/20/2016 at 11:58PM

19
#3167 - Koudougou / @OpenPatate

09/23/2016 at 02:43PM

19
#3168 - Joe Heth / @jheth

10/04/2016 at 11:45PM

19
#3169 - Pradeep Kumar 🇮🇳🇮🇳🇮🇳🇮🇱🇮🇱🇮🇱 / @pradeep6kumar

10/10/2016 at 03:19PM

19
#3170 - Дмитрий Кремез / @dima_kremez

10/16/2016 at 07:12PM

19
#3171 - Alpa_akm / @Alpa_akm

10/30/2016 at 04:54AM

19
#3172 - holy_sin / @0zero0

12/09/2016 at 07:39AM

19
#3173 - Michał Dytko / @DytkoM

12/16/2016 at 09:42AM

19
#3174 - Yannick Novella / @ynovella

01/13/2017 at 02:15PM

19
#3175 - Jake Askeland / @JakeAskeland

01/16/2017 at 08:23AM

19
#3176 - Juan Karam / @JuanKaram

03/24/2017 at 06:56PM

19
#3177 - Tommaso Leonardi / @tom_leon

05/11/2017 at 01:59PM

19
#3178 - Adam Ford / @_adamford_

05/31/2017 at 02:01AM

19
#3179 - Mykola Savostianov / @sole_pyramidka

06/16/2017 at 08:15PM

19
#3180 - thomas lo / @wagaiznogoud

08/10/2017 at 10:17PM