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

3854 active golfers, 14691 entries

Leaderboard (lowest score wins):
16
#2311 - Gabriel Dupras / @SuperFalconMan

03/21/2016 at 12:26AM

16
#2312 - Neelo / @Neelo_Bullet

03/22/2016 at 04:22PM

16
#2313 - Matt Camilli / @mlcamilli

03/24/2016 at 05:02PM

16
#2314 - Clémence / @Clemence_Neoxia

03/30/2016 at 08:29AM

16
#2315 - benthemeek / @benthemeek

04/13/2016 at 10:21PM

16
#2316 - abhinavgujjar / @abhinavgujjar

04/15/2016 at 06:46PM

16
#2317 - iikieh / @iikieh

05/07/2016 at 06:03AM

16
#2318 - george iv / @geowa4

05/13/2016 at 03:18PM

16
#2319 - Ϲhris Ιnskip / @_chrisinskip

05/13/2016 at 10:59PM

16
#2320 - Samuel Walladge / @srwalladge

05/14/2016 at 07:38AM

16
#2321 - Henry Dang / @henrydangchs

05/15/2016 at 01:52AM

16
#2322 - Kerry Todyruik / @KTodyruik

05/16/2016 at 03:14AM

16
#2323 - Huseyin KELES / @WhoSayIn

05/18/2016 at 06:47AM

16
#2324 - Conner Vercellino / @C255V

06/08/2016 at 07:18AM

16
#2325 - ijemmy / @ijemmy

06/20/2016 at 05:54PM

16
#2326 - Vaisian / @Vaisian

07/02/2016 at 11:05PM

16
#2327 - Amory Schlender / @schlamory

07/08/2016 at 05:56AM

16
#2328 - 王运 / @640138017

07/11/2016 at 08:58AM

16
#2329 - Paul Roe / @ep_roe

08/25/2016 at 04:51PM

16
#2330 - Speff / @Speffzt

09/02/2016 at 03:30AM

16
#2331 - 알카포 / @alkpo12

09/08/2016 at 08:27PM

16
#2332 - tetor / @t_etor

09/16/2016 at 12:34AM

16
#2333 - Rasmus / @SBareSSomErMig

09/16/2016 at 08:29PM

16
#2334 - Christophe Perrotin / @ChrisPerSurTwit

09/24/2016 at 04:25PM

16
#2335 - claytron / @claytron

10/04/2016 at 11:42PM

16
#2336 - John Barbero Unenge / @JBarberU

10/19/2016 at 10:21AM

16
#2337 - Christian Rech / @de_Rech

10/20/2016 at 06:33PM

16
#2338 - TETSU / @kaoru6strings

11/02/2016 at 08:31AM

16
#2339 - Philipp Mildenberger / @_phil_m

11/14/2016 at 11:04PM

16
#2340 - BlackCap / @BlackCapCoder

11/23/2016 at 01:46PM