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, 15145 entries

Leaderboard (lowest score wins):
19
#3241 - Eric Biven / @EricBiven

12/31/2014 at 08:16PM

19
#3242 - evilmoe ☮ / @evilmoe

01/02/2015 at 08:52AM

19
#3243 - Ayman Farhat / @aymanfarhat

01/06/2015 at 06:56PM

19
#3244 - Antonio Murdaca / @runc0m

01/16/2015 at 10:00PM

19
#3245 - Raingomm / @raingomm

01/19/2015 at 07:25AM

19
#3246 - Giorgio / @Gpx

01/19/2015 at 06:41PM

19
#3247 - air wick / @airwickc

01/22/2015 at 11:52PM

19
#3248 - SilentFl / @Silent_Fl

01/25/2015 at 07:54AM

19
#3249 - Evgeny Traytyak / @evgen_traytyak

01/28/2015 at 03:10PM

19
#3250 - Roman Firt / @RomanFirt

01/28/2015 at 08:36PM

19
#3251 - Christian Leskowsky / @CLeskowsky

02/02/2015 at 12:49PM

19
#3252 - Bobby / @rrockers

02/04/2015 at 12:03AM

19
#3253 - Andrea Mazzini / @theandreamazz

02/07/2015 at 02:28PM

19
#3254 - Sri Kadimisetty / @sri

02/10/2015 at 11:50PM

19
#3255 - Sebastian / @soapsurfer

02/13/2015 at 11:53AM

19
#3256 - Simon Mullis / @smullis

02/25/2015 at 04:12PM

19
#3257 - Mike McGowan / @mikemcgowan75

02/26/2015 at 02:17PM

19
#3258 - Samuel Simões / @samuelsimoes

03/11/2015 at 10:13PM

19
#3259 - Markus / @markusaschl

03/28/2015 at 12:56PM

19
#3260 - steron / @steron23

04/10/2015 at 12:39PM

19
#3261 - marcelo jacobus / @marcelo_jacobus

04/10/2015 at 08:29PM

19
#3262 - Brian Olpin / @bolpin

04/13/2015 at 07:10AM

19
#3263 - Arthur schneider / @w1ndt4lk3r

04/16/2015 at 08:02PM

19
#3264 - Steven Wexler / @stevenmwexler

04/20/2015 at 04:34AM

19
#3265 - Jefferson Hudson / @JBHudson4

04/21/2015 at 10:49PM

19
#3266 - Tabby / @Tabbie__

05/02/2015 at 07:10AM

19
#3267 - Oliver Friedrich / @slith76

05/22/2015 at 07:15AM

19
#3268 - alex / @alexzzp

05/30/2015 at 05:32PM

19
#3269 - Matteo Schmali / @schmalimatteo

07/11/2015 at 09:58PM

19
#3270 - darookee / @darookee

07/24/2015 at 09:03AM