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

3920 active golfers, 14968 entries

Leaderboard (lowest score wins):
14
#1561 - Steven Moazami / @mong8se

05/08/2016 at 02:32AM

14
#1562 - Andres Araya / @arayaandresfco

05/14/2016 at 07:22PM

14
#1563 - Ryan Dwyer / @ryan_dwyer

06/01/2016 at 04:08AM

14
#1564 - talineo / @talineo_

06/02/2016 at 03:56PM

14
#1565 - Lukas B. / @pixel6692

06/03/2016 at 08:42AM

14
#1566 - David Devecsery / @devecsery

06/08/2016 at 03:38PM

14
#1567 - Rein Van Imschoot / @reinvanimschoot

06/16/2016 at 08:52PM

14
#1568 - Diego Garcia ⚒ / @drgarcia1986

07/24/2016 at 06:40PM

14
#1569 - Jake Maul / @jake_maul

08/03/2016 at 06:47AM

14
#1570 - Josh Samuelson / @JoshSamuelson

08/09/2016 at 08:04PM

14
#1571 - kodemaan / @kodemaan

08/12/2016 at 08:24PM

14
#1572 - Andrew Smith / @amazing_andrew

08/13/2016 at 04:13AM

14
#1573 - Marsellus Wallace / @Marsellus_Walla

08/13/2016 at 09:11PM

14
#1574 - Zdravko Colic / @virtual_key

08/17/2016 at 08:03PM

14
#1575 - jj johnson / @jcassj1

08/22/2016 at 11:33AM

14
#1576 - Krzysztof Borkowski / @smiechowy

09/03/2016 at 12:30PM

14
#1577 - Raj / @rjindel

09/17/2016 at 11:48PM

14
#1578 - Christian Albertsen / @mannahusum

09/20/2016 at 05:08PM

14
#1579 - Daniel Bellenger / @DanielBellenger

09/24/2016 at 11:30PM

14
#1580 - Netrisk Cool / @C00lt0

09/29/2016 at 06:00PM

14
#1581 - Shashwat Raghuvanshi / @Shashwat_sr123

10/19/2016 at 09:06AM

14
#1582 - Domus Code / @DomusCode

10/19/2016 at 10:02AM

14
#1583 - Christoph F. Seelus / @cseelus

10/26/2016 at 03:44AM

14
#1584 - Pierre Sugar / @sugaryourcoffex

10/28/2016 at 09:56PM

14
#1585 - John Hassell / @jhassell

11/07/2016 at 03:07PM

14
#1586 - Jonathan Lao-Kan / @jlaokan

11/10/2016 at 06:35AM

14
#1587 - Sergio / @voyeg3r

11/23/2016 at 07:30PM

14
#1588 - Dillon Kearns / @dillontkearns

11/26/2016 at 05:35AM

14
#1589 - Bill Booth / @ohiopyle

11/27/2016 at 09:26AM

14
#1590 - sat0b / @sat0b

12/02/2016 at 02:44PM