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
#1471 - Dave Neary / @nearyd

08/13/2015 at 01:13PM

14
#1472 - Endre Galaczi / @galacziendre

08/19/2015 at 07:41PM

14
#1473 - Jesse Atkinson / @jsatk

08/27/2015 at 09:01PM

14
#1474 - Hisco / @francis_vega

09/03/2015 at 04:27PM

14
#1475 - Gabriel Florit / @gabrielflorit

09/05/2015 at 09:17AM

14
#1476 - Slobodan Mišković / @slobomiskovic

09/08/2015 at 04:02AM

14
#1477 - Victor Kasatkin / @vikasatkin

09/20/2015 at 03:54AM

14
#1478 - Dan Bee / @HIYARR

09/23/2015 at 07:22AM

14
#1479 - Sid Momin / @mominsid

10/08/2015 at 01:15AM

14
#1480 - davegoncalves / @davegoncalves

10/11/2015 at 02:16PM

14
#1481 - Chuck Newport / @swap_chuck

10/14/2015 at 06:40PM

14
#1482 - Mark Brody / @_markbrody

10/14/2015 at 08:55PM

14
#1483 - Joseph Nam / @josephknam

10/15/2015 at 10:22PM

14
#1484 - Anshu Avinash / @anshu_avinash

10/17/2015 at 09:03PM

14
#1485 - merphant / @merphant

10/22/2015 at 06:48AM

14
#1486 - Joe Ruder / @joeruder42

10/28/2015 at 09:14PM

14
#1487 - Árpád Krejczinger / @krarpi

11/02/2015 at 04:09PM

14
#1488 - Robert Goeddel / @f0rdpr3fect

11/09/2015 at 09:57PM

14
#1489 - Dave Powell / @d_pow_pow

11/14/2015 at 08:45PM

14
#1490 - Angus McInnes / @eigenstuff

11/24/2015 at 10:14AM

14
#1491 - Johannes K / @JohannesK9

12/04/2015 at 07:26PM

14
#1492 - Sean Stout / @s183s657

12/09/2015 at 08:05AM

14
#1493 - brett / @brettyukich

12/10/2015 at 09:39PM

14
#1494 - Dustin Langewisch / @dlangewisch1

12/16/2015 at 08:35AM

14
#1495 - Sebastian Nickel / @tumblingwhimsy

12/23/2015 at 06:15PM

14
#1496 - aanton / @aanton

12/25/2015 at 08:27PM

14
#1497 - Mirko Grönroos / @hermo

01/06/2016 at 08:51AM

14
#1498 - Austin Wood / @indiesquidge

01/14/2016 at 05:57PM

14
#1499 - alcinos / @alcinos69

01/24/2016 at 12:09PM

14
#1500 - Maciej Woźniak / @eldhash

01/25/2016 at 11:45PM