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
#2431 - Milovan Zogovic / @zogash

04/13/2017 at 07:28AM

16
#2432 - ephemient / @ephemient

04/15/2017 at 06:55AM

16
#2433 - raffitz / @raffitz

04/19/2017 at 05:43PM

16
#2434 - Sean / @seanmcclory

04/29/2017 at 06:26AM

16
#2435 - Alexander Gryson / @agryson

05/01/2017 at 03:04PM

16
#2436 - Edouard Piette / @EdPiette

05/04/2017 at 02:59PM

16
#2437 - Bruce Horner / @HerbConjurer

05/14/2017 at 01:30AM

16
#2438 - squdle / @squdle

06/17/2017 at 01:54PM

16
#2439 - Mayank Suman / @mayank_suman

06/24/2017 at 05:39PM

16
#2440 - Anne Pacalet / @_Anne_P

07/06/2017 at 10:30AM

16
#2441 - Frozen Voice / @FrozenVoice

07/29/2017 at 05:06AM

16
#2442 - adeel hussain / @adeelhussain

08/02/2017 at 04:02AM

16
#2443 - puyisetev / @puyisetev

08/03/2017 at 01:20AM

16
#2444 - nekorug😊🌼 / @nekorug

08/24/2017 at 12:17AM

16
#2445 - Laurent Atlan / @laurentatlan1

08/24/2017 at 08:36PM

16
#2446 - Alexander Bushkovsky / @teplolog

09/15/2017 at 07:00PM

16
#2447 - Pablo / @suspekt007

09/25/2017 at 09:47PM

16
#2448 - Daniel Norris / @danielcnorris

09/28/2017 at 07:22PM

16
#2449 - Kota Mori / @KotaMori1

10/01/2017 at 10:48AM

16
#2450 - Global Maquereau / @GlobalMaquereau

10/10/2017 at 08:18AM

16
#2451 - しぇぱっち / @shepabashi

10/20/2017 at 03:18AM

16
#2452 - Amy Lim / @chasingkytes

10/21/2017 at 07:12PM

16
#2453 - Sebastian Korten / @FlashKorten

10/28/2017 at 11:00AM

16
#2454 - Rodrigo Santa Cruz / @rstcruzo

11/02/2017 at 04:31AM

16
#2455 - djfreshcrashscratch / @schinkendoener

11/09/2017 at 07:24PM

16
#2456 - 梅干 / @Umeboshi_9

11/10/2017 at 10:36AM

16
#2457 - Carl Ward / @doncarlos999

11/21/2017 at 08:38AM

16
#2458 - Bart Kleijngeld / @BartKleijngeld

11/28/2017 at 10:13PM

16
#2459 - Andrei Gasparovici / @agasparovici

11/29/2017 at 08:34PM

16
#2460 - 小山内まい / @osanamity

12/23/2017 at 06:18PM