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):
16
#2371 - Darren Burgess / @DarrenBurgess

02/03/2016 at 02:31AM

16
#2372 - Guillaume Seren / @guillaumeseren

02/10/2016 at 01:39PM

16
#2373 - James Burns / @James_Ian_Burns

02/11/2016 at 02:06PM

16
#2374 - Tj / @yrddy

02/17/2016 at 04:57AM

16
#2375 - Sally Mae / @sallymaemac

02/19/2016 at 06:06AM

16
#2376 - Antony Garand / @AntoGarand

02/24/2016 at 08:09PM

16
#2377 - Syrrim / @syrrim

03/10/2016 at 08:24PM

16
#2378 - tullie / @tulliemurrell

03/20/2016 at 03:29PM

16
#2379 - Gabriel Dupras / @SuperFalconMan

03/21/2016 at 12:26AM

16
#2380 - Neelo / @Neelo_Bullet

03/22/2016 at 04:22PM

16
#2381 - Matt Camilli / @mlcamilli

03/24/2016 at 05:02PM

16
#2382 - Clémence / @Clemence_Neoxia

03/30/2016 at 08:29AM

16
#2383 - benthemeek / @benthemeek

04/13/2016 at 10:21PM

16
#2384 - abhinavgujjar / @abhinavgujjar

04/15/2016 at 06:46PM

16
#2385 - iikieh / @iikieh

05/07/2016 at 06:03AM

16
#2386 - george iv / @geowa4

05/13/2016 at 03:18PM

16
#2387 - Ϲhris Ιnskip / @_chrisinskip

05/13/2016 at 10:59PM

16
#2388 - Samuel Walladge / @srwalladge

05/14/2016 at 07:38AM

16
#2389 - Henry Dang / @henrydangchs

05/15/2016 at 01:52AM

16
#2390 - Kerry Todyruik / @KTodyruik

05/16/2016 at 03:14AM

16
#2391 - Huseyin KELES / @WhoSayIn

05/18/2016 at 06:47AM

16
#2392 - Conner Vercellino / @C255V

06/08/2016 at 07:18AM

16
#2393 - ijemmy / @ijemmy

06/20/2016 at 05:54PM

16
#2394 - Vaisian / @Vaisian

07/02/2016 at 11:05PM

16
#2395 - Amory Schlender / @schlamory

07/08/2016 at 05:56AM

16
#2396 - 王运 / @640138017

07/11/2016 at 08:58AM

16
#2397 - Paul Roe / @ep_roe

08/25/2016 at 04:51PM

16
#2398 - Speff / @Speffzt

09/02/2016 at 03:30AM

16
#2399 - 알카포 / @alkpo12

09/08/2016 at 08:27PM

16
#2400 - tetor / @t_etor

09/16/2016 at 12:34AM