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

3806 active golfers, 14477 entries

Leaderboard (lowest score wins):
14
#1561 - :q / @AndyColonQ

04/17/2017 at 11:19PM

14
#1562 - Colby Hamilton / @ColbyHamilton5

04/18/2017 at 06:13PM

14
#1563 - Juha Paatelma / @jpaatelm

04/20/2017 at 09:25AM

14
#1564 - Boris Brodski / @BorisBrodski

05/03/2017 at 08:27AM

14
#1565 - Wang Wu / @rubepeg

05/11/2017 at 12:46PM

14
#1566 - Abin Simon / @meain_

06/05/2017 at 06:27PM

14
#1567 - だださω / @kdaiki211

06/07/2017 at 04:46PM

14
#1568 - Anthony George / @Xanuthatusu

06/09/2017 at 05:37PM

14
#1569 - あいす / @iScream31

06/12/2017 at 08:39AM

14
#1570 - John Smith / @john828495

06/16/2017 at 02:20PM

14
#1571 - John Smith / @johns32768

06/16/2017 at 06:48PM

14
#1572 - Daniel Smith / @_Tysonzero

06/22/2017 at 05:42PM

14
#1573 - Gurukandhamoorthi / @Gurukandhamoor1

07/09/2017 at 02:23PM

14
#1574 - Conrad / @Conrad55084958

08/11/2017 at 10:19PM

14
#1575 - NOT Takinashi / @TaleLore

08/25/2017 at 05:38PM

14
#1576 - Daniel Wang / @npbool

08/29/2017 at 12:54PM

14
#1577 - Jeremy Huiskamp / @jeremyhuiskamp

09/01/2017 at 08:05PM

14
#1578 - Benjamin Unger / @Ben_Unger

09/04/2017 at 06:23PM

14
#1579 - Harrison DiStefano / @HarrisonDiStef1

09/21/2017 at 08:24PM

14
#1580 - Matt Rixman / @MattRixman

09/29/2017 at 05:36PM

14
#1581 - Denis Kaluznyy / @Spy_Denis

10/04/2017 at 02:29PM

14
#1582 - Jon Bakies / @jonbakies

10/05/2017 at 02:18PM

14
#1583 - Elton Kamami / @pixel_grid

10/07/2017 at 07:47PM

14
#1584 - Mike Reinhardt / @subitoforte

10/18/2017 at 06:49PM

14
#1585 - Sam Coy / @samthecoy

10/25/2017 at 10:51AM

14
#1586 - Vim Golf / @golf_vim

10/26/2017 at 09:03PM

14
#1587 - Gibson Fahnestock / @gibfahn

10/29/2017 at 07:29PM

14
#1588 - popo5colo / @popo5colo1

10/31/2017 at 03:23AM

14
#1589 - ryuugekisya / @ryuugekisya

11/04/2017 at 02:22AM

14
#1590 - Mike Harris / @MikeMJHarris

11/10/2017 at 07:08PM