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

3809 active golfers, 14487 entries

Leaderboard (lowest score wins):
18
#3031 - Gabriel Walford / @gtwalford

08/03/2018 at 07:32PM

18
#3032 - Lunar Gods Cry Too / @lunarsobs

08/05/2018 at 04:08AM

18
#3033 - Nursan / @Nursan73316482

08/08/2018 at 09:08PM

18
#3034 - broken_art / @brokenart10

08/30/2018 at 02:10PM

18
#3035 - kevin / @kevin_sdc

09/02/2018 at 07:39AM

18
#3036 - Fellow Millennium / @Fellow2000

09/03/2018 at 10:57AM

18
#3037 - Roch Mirabeau / @roch_kiss

09/20/2018 at 03:01AM

18
#3038 - Dave Brda / @BrdaDave

09/28/2018 at 01:27AM

18
#3039 - :yert: / @avayert

10/13/2018 at 04:39PM

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

10/19/2018 at 02:22AM

18
#3041 - 茶々豆 / @chachamame0420

10/19/2018 at 12:31PM

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

11/02/2018 at 07:37PM

18
#3043 - salkfnjdslkgjdslkfjdsa / @salkfnjdslkgjd1

11/09/2018 at 09:15AM

18
#3044 - Webdeveloper⭐⭐ / @refschool

11/10/2018 at 10:38PM

18
#3045 - Luis Rodriguez / @luisthecoder

11/12/2018 at 12:31AM

18
#3046 - Ohad Rubin / @OhadRubin

11/15/2018 at 02:53PM

18
#3047 - Homer Simp12586 / @simp12586

11/18/2018 at 06:43PM

18
#3048 - MEschenbacher / @eschenbacher_m

11/27/2018 at 09:47AM

18
#3049 - Michael Thole / @mikethole

11/29/2018 at 01:48AM

18
#3050 - Oliver Wilkie / @oliwilks

11/29/2018 at 01:48AM

18
#3051 - Angry Dev / @AngryDev7

12/02/2018 at 07:13PM

18
#3052 - Noy Pearl / @NoyPearl

12/03/2018 at 08:53PM

18
#3053 - Oren Koriat / @KoriatOren

12/05/2018 at 07:00PM

18
#3054 - Jasper Pangilinan / @JasperP

12/25/2018 at 12:23AM

18
#3055 - sstar / @sstar60015687

12/26/2018 at 09:45AM

18
#3056 - zenwalker / @zenwalker93

12/30/2018 at 04:20PM

18
#3057 - Daniel Wolf / @DanielW06054976

01/03/2019 at 04:51PM

18
#3058 - Eric Ahlberg / @e_ahlberg

01/11/2019 at 01:59PM

18
#3059 - Pfhor / @PfhorShark

01/23/2019 at 10:40PM

18
#3060 - Kit Saels / @KitSaels

01/24/2019 at 10:03PM