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

3962 active golfers, 15136 entries

Leaderboard (lowest score wins):
15
#2221 - Daniel Amkær Sørensen / @AmkRensen

01/30/2020 at 01:35PM

15
#2222 - Steffen / @Pions90

02/14/2020 at 03:39PM

15
#2223 - Scott Lee / @ureure

02/28/2020 at 03:39AM

15
#2224 - ser / @ser_robo

02/28/2020 at 04:56PM

15
#2225 - Josa Gesell / @josa_

03/31/2020 at 09:56PM

15
#2226 - Sebastián Ortega / @_sortega

04/01/2020 at 05:06PM

15
#2227 - Jason / @roosjason

04/06/2020 at 05:01AM

15
#2228 - Daniel Fleischman / @vimgolfdaniel

04/08/2020 at 08:35AM

15
#2229 - David / @imdavidhwang

04/19/2020 at 01:23AM

15
#2230 - Sabin maharjan / @Sabinma86681681

04/19/2020 at 09:27AM

15
#2231 - Fabian Ahbeck / @FAhbeck

04/22/2020 at 10:17PM

15
#2232 - The Legy / @thelegy

04/24/2020 at 12:31AM

15
#2233 - Zachary Lee / @abstractlyZach

05/02/2020 at 08:05PM

15
#2234 - Axel / @Axel07930943

05/05/2020 at 05:01AM

15
#2235 - Matt DB / @MattDB12

05/11/2020 at 08:10PM

15
#2236 - Pan / @bekindtopeople2

05/12/2020 at 05:29PM

15
#2237 - MA Calero / @GaleonCalero

06/07/2020 at 04:13PM

15
#2238 - Rene Ribaud / @Uggla_

06/07/2020 at 09:39PM

15
#2239 - Jacob Shomstein / @jshoms

06/16/2020 at 03:20AM

15
#2240 - infinitesimal being 🎮 / @hydr063n

06/20/2020 at 09:20PM

15
#2241 - soundscope / @__soundscope__

06/29/2020 at 01:54AM

15
#2242 - jackmark / @jackmar14540583

07/11/2020 at 06:29AM

15
#2243 - yuval jacoby / @yuval_jacoby

07/11/2020 at 09:34PM

15
#2244 - vito / @vito49999722

07/19/2020 at 10:23AM

15
#2245 - MathijsHoogland / @MathijsHoogland

07/29/2020 at 08:16AM

15
#2246 - Martin Bielik / @mabielik

08/06/2020 at 09:29PM

15
#2247 - s3cy / @s3cyxx

08/24/2020 at 02:58PM

15
#2248 - lz2ggf / @lz2ggf

08/26/2020 at 07:33PM

15
#2249 - vimgolfer98746521 / @vimgolfer987461

09/06/2020 at 10:39AM

15
#2250 - Just Alerik / @Just_Alerik

09/18/2020 at 03:50AM