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

3964 active golfers, 15148 entries

Leaderboard (lowest score wins):
18
#3151 - kevin / @kevin_sdc

09/02/2018 at 07:39AM

18
#3152 - Fellow Millennium / @Fellow2000

09/03/2018 at 10:57AM

18
#3153 - Roch Mirabeau / @roch_kiss

09/20/2018 at 03:01AM

18
#3154 - Dave Brda / @BrdaDave

09/28/2018 at 01:27AM

18
#3155 - :yert: / @avayert

10/13/2018 at 04:39PM

18
#3156 - Cj-bc_sd.sh🐟@mltermコンパイルチャレンジ / @Cj_bc_sd

10/19/2018 at 02:22AM

18
#3157 - 茶々豆 / @chachamame0420

10/19/2018 at 12:31PM

18
#3158 - Today's Big Idea / @todaysfamilyid1

11/02/2018 at 07:37PM

18
#3159 - salkfnjdslkgjdslkfjdsa / @salkfnjdslkgjd1

11/09/2018 at 09:15AM

18
#3160 - Webdeveloper⭐⭐ / @refschool

11/10/2018 at 10:38PM

18
#3161 - Luis Rodriguez / @luisthecoder

11/12/2018 at 12:31AM

18
#3162 - Ohad Rubin / @OhadRubin

11/15/2018 at 02:53PM

18
#3163 - Homer Simp12586 / @simp12586

11/18/2018 at 06:43PM

18
#3164 - MEschenbacher / @eschenbacher_m

11/27/2018 at 09:47AM

18
#3165 - Michael Thole / @mikethole

11/29/2018 at 01:48AM

18
#3166 - Oliver Wilkie / @oliwilks

11/29/2018 at 01:48AM

18
#3167 - Angry Dev / @AngryDev7

12/02/2018 at 07:13PM

18
#3168 - Noy Pearl / @NoyPearl

12/03/2018 at 08:53PM

18
#3169 - Oren Koriat / @KoriatOren

12/05/2018 at 07:00PM

18
#3170 - Jasper Pangilinan / @JasperP

12/25/2018 at 12:23AM

18
#3171 - sstar / @sstar60015687

12/26/2018 at 09:45AM

18
#3172 - zenwalker / @zenwalker93

12/30/2018 at 04:20PM

18
#3173 - Daniel Wolf / @DanielW06054976

01/03/2019 at 04:51PM

18
#3174 - Eric Ahlberg / @e_ahlberg

01/11/2019 at 01:59PM

18
#3175 - Pfhor / @PfhorShark

01/23/2019 at 10:40PM

18
#3176 - Kit Saels / @KitSaels

01/24/2019 at 10:03PM

18
#3177 - andrwyoung / @andrwyoung1

03/01/2019 at 08:58PM

18
#3178 - Der Wucher / @derwucher

03/02/2019 at 06:08PM

18
#3179 - Jiho Noh / @JihoNoh

03/02/2019 at 11:12PM

18
#3180 - Brian Boyd / @Bboyd4291

03/04/2019 at 03:04PM