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

4071 active golfers, 15593 entries

Leaderboard (lowest score wins):
10
#1051 - Jason / @jason_eveleth

07/22/2020 at 01:03PM

10
#1052 - Andy Yang / @yzwdroid

07/24/2020 at 05:09AM

10
#1053 - Gergely Risko / @errge

07/28/2020 at 10:50PM

10
#1054 - leodamsky / @leodamskyi

07/31/2020 at 03:32PM

10
#1055 - Olle Wiklund / @Kabix

08/01/2020 at 06:53AM

10
#1056 - Steve Frost / @FrostSteveFrost

08/02/2020 at 10:32PM

10
#1057 - analogpixel / @analogp1xel

08/04/2020 at 09:18PM

10
#1058 - Ivan Kwong / @IvanKwong5

08/09/2020 at 02:57PM

10
#1059 - Nicolas Marier / @NicMarier

08/12/2020 at 06:21PM

10
#1060 - Андрей / @appomsk

08/16/2020 at 02:56PM

10
#1061 - Cao Van Bi / @CaoVanBi235

08/20/2020 at 10:56AM

10
#1062 - Till Straube / @tillstr

08/21/2020 at 05:35PM

10
#1063 - fenn.stefan@gmail.com / @FennStefan

08/25/2020 at 01:05PM

10
#1064 - Ihor / @Ihor96382508

08/29/2020 at 12:21PM

10
#1065 - Skyler Dong / @skylerdong

08/31/2020 at 09:50PM

10
#1066 - dezhonger / @dezhonger

09/03/2020 at 08:54PM

10
#1067 - akouryy / @akouryy1

09/05/2020 at 12:06PM

10
#1068 - 刘宏亮 / @CoyAkey

09/08/2020 at 04:48AM

10
#1069 - Anton Kriese / @KrieseAnton

09/10/2020 at 07:52PM

10
#1070 - Rayduck / @RuidaDing

09/11/2020 at 06:30AM

10
#1071 - Piotr Kaznowski / @kaznowski

09/13/2020 at 06:03PM

10
#1072 - FunkyKoval / @FunkyKoval10

09/16/2020 at 05:09PM

10
#1073 - Andrew McKinlay / @ihavethecon

09/18/2020 at 08:41PM

10
#1074 - M / @M88566443

09/20/2020 at 12:34AM

10
#1075 - Aaron Cooley / @acoolz

09/20/2020 at 04:48PM

10
#1076 - as-night / @asnight2

09/23/2020 at 05:31PM

10
#1077 - Alice / @Alice10204425

09/29/2020 at 09:57PM

10
#1078 - Adrien Lemaire ドリ / @Adrien_Lemaire_

10/03/2020 at 01:08PM

10
#1079 - Er St / @ErSt46286501

10/07/2020 at 10:47AM

10
#1080 - lamtt77 / @lamtt77

10/07/2020 at 11:26AM