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

3919 active golfers, 14960 entries

Leaderboard (lowest score wins):
17
#2581 - Whatdoyouknow / @wehatet49440068

12/10/2014 at 04:56PM

17
#2582 - Rodolphe Marques / @rodmar_

12/12/2014 at 03:56PM

17
#2583 - Paweł Max K. / @ktorek

12/14/2014 at 05:06PM

17
#2584 - Steve Alison / @Steve_Alison

12/16/2014 at 10:59PM

17
#2585 - Saher El-Neklawy / @saherneklawy

12/22/2014 at 07:52AM

17
#2586 - Araka Bar / @ArakaBar

12/22/2014 at 12:51PM

17
#2587 - Leo Allen / @pitch_invasion

01/05/2015 at 06:07PM

17
#2588 - Spike / @spikelindsey

01/09/2015 at 09:18AM

17
#2589 - Charles Wu / @Congeec

01/13/2015 at 02:02PM

17
#2590 - Simon Mölzer / @h0wser

01/19/2015 at 07:08AM

17
#2591 - Will Childs / @wbchilds

01/29/2015 at 11:06PM

17
#2592 - Matt Kula / @matt_kula

02/04/2015 at 12:59AM

17
#2593 - Ted Studley / @TedStudley

02/06/2015 at 03:32AM

17
#2594 - Joe Choi / @joehanchoi

02/09/2015 at 02:12AM

17
#2595 - Kristijan Husak / @kristijan_husak

02/09/2015 at 09:53AM

17
#2596 - Ricardo Lima / @ricponteslima

02/11/2015 at 04:44PM

17
#2597 - Rodolphe Belouin / @rbelouin

02/13/2015 at 10:50AM

17
#2598 - James Pringle / @mathbyjames

02/13/2015 at 07:01PM

17
#2599 - lpm11 / T. Tsunoda / @lpm11

02/16/2015 at 01:56AM

17
#2600 - Asenar / @asenar

02/23/2015 at 03:41PM

17
#2601 - Colac Ionel / @ColacIonel

02/23/2015 at 06:07PM

17
#2602 - Bilal Quadri / @BilalQuadri

02/25/2015 at 12:05AM

17
#2603 - Hugues de Lassus / @HuguesdeLassus

02/26/2015 at 12:59PM

17
#2604 - Axelrod Gunnarson / @AxelrodG

02/27/2015 at 07:48PM

17
#2605 - AppTakk! / @apptakk

03/02/2015 at 10:35AM

17
#2606 - muulwurf / @muulwurf

03/02/2015 at 07:56PM

17
#2607 - Matthew Bender / @iobender

03/02/2015 at 08:11PM

17
#2608 - Gideon VanRiette / @gidjv

03/03/2015 at 04:24AM

17
#2609 - markos rendell / @markosrendell

03/03/2015 at 04:11PM

17
#2610 - US Dollar Price / @USDollarPrice

03/08/2015 at 12:51AM