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
#2341 - KM or MVDH / @dwarfylenain

11/23/2016 at 07:40PM

16
#2342 - Максим Ливень / @maxlevs

11/24/2016 at 04:16AM

16
#2343 - Sikado / @sikado

12/10/2016 at 09:07PM

16
#2344 - Craig Langford / @cllangfo

12/11/2016 at 01:04PM

16
#2345 - Nessig / @Nessig5

12/18/2016 at 03:16AM

16
#2346 - Jan Eisenhauer / @EisenhauerJan

12/22/2016 at 02:20AM

16
#2347 - Ryugo Abe / @Ryu8179

12/27/2016 at 07:46AM

16
#2348 - poke / @useraaaaaaaaaaf

12/27/2016 at 04:53PM

16
#2349 - Wojciech / @linuxuser404

01/05/2017 at 10:06PM

16
#2350 - Hans Yelek / @hans_yelek

01/08/2017 at 08:37PM

16
#2351 - J. Cosa / @esoesotracosa

01/16/2017 at 11:39AM

16
#2352 - ZW / @ZW73226885

01/24/2017 at 06:28PM

16
#2353 - leslie snipes / @imjakerl

01/25/2017 at 05:44AM

16
#2354 - Charlier / @Charlicanman

01/28/2017 at 02:13PM

16
#2355 - Cù Hữu Hoàng / @Cuhuuhoang

02/14/2017 at 03:23AM

16
#2356 - Evgeny Morozov / @Evmorov

02/25/2017 at 09:49PM

16
#2357 - Nicholas Shirley / @nashirley

02/26/2017 at 01:11AM

16
#2358 - Silhouettry / @silhouettry

02/27/2017 at 11:56PM

16
#2359 - Daniel Schäfer / @DrJohnZoid

03/02/2017 at 12:57PM

16
#2360 - Alex Subtle / @AlexSubtle

03/30/2017 at 09:27PM

16
#2361 - Aman Singhal / @helixinverse

04/02/2017 at 02:56AM

16
#2362 - Ryan Jarrett / @texmexas

04/03/2017 at 03:06PM

16
#2363 - Milovan Zogovic / @zogash

04/13/2017 at 07:28AM

16
#2364 - ephemient / @ephemient

04/15/2017 at 06:55AM

16
#2365 - raffitz / @raffitz

04/19/2017 at 05:43PM

16
#2366 - Sean / @seanmcclory

04/29/2017 at 06:26AM

16
#2367 - Alexander Gryson / @agryson

05/01/2017 at 03:04PM

16
#2368 - Edouard Piette / @EdPiette

05/04/2017 at 02:59PM

16
#2369 - Bruce Horner / @HerbConjurer

05/14/2017 at 01:30AM

16
#2370 - squdle / @squdle

06/17/2017 at 01:54PM