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

3921 active golfers, 14971 entries

Leaderboard (lowest score wins):
14
#1501 - Florian Lücke / @CannibalGorilla

07/21/2015 at 07:37AM

14
#1502 - anonymous / @_nonymous

07/23/2015 at 11:51PM

14
#1503 - Serenium / @serenium

07/24/2015 at 12:37PM

14
#1504 - walkingsparrow / @walkingsparrow

07/24/2015 at 10:18PM

14
#1505 - McKay Ward / @mckayward

07/26/2015 at 01:09AM

14
#1506 - Matthew / @magee210

07/28/2015 at 12:13AM

14
#1507 - Peter B / @l0wm4x

07/28/2015 at 08:11AM

14
#1508 - Bakhti Aripov / @bakhti

07/29/2015 at 10:59AM

14
#1509 - randomizer user / @alsdkfhjlkadfha

07/30/2015 at 11:23AM

14
#1510 - Tim Vail / @timdvail

08/07/2015 at 03:16AM

14
#1511 - Albert Pumarola / @AlbertPumarola

08/07/2015 at 02:46PM

14
#1512 - Zak Greant / @zakgreant

08/07/2015 at 07:47PM

14
#1513 - Blake Tereau / @BlakeTereau

08/11/2015 at 02:25AM

14
#1514 - Dave Neary / @nearyd

08/13/2015 at 01:13PM

14
#1515 - Endre Galaczi / @galacziendre

08/19/2015 at 07:41PM

14
#1516 - Jesse Atkinson / @jsatk

08/27/2015 at 09:01PM

14
#1517 - Hisco / @francis_vega

09/03/2015 at 04:27PM

14
#1518 - Gabriel Florit / @gabrielflorit

09/05/2015 at 09:17AM

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

09/08/2015 at 04:02AM

14
#1520 - Victor Kasatkin / @vikasatkin

09/20/2015 at 03:54AM

14
#1521 - Dan Bee / @HIYARR

09/23/2015 at 07:22AM

14
#1522 - Sid Momin / @mominsid

10/08/2015 at 01:15AM

14
#1523 - davegoncalves / @davegoncalves

10/11/2015 at 02:16PM

14
#1524 - Chuck Newport / @swap_chuck

10/14/2015 at 06:40PM

14
#1525 - Mark Brody / @_markbrody

10/14/2015 at 08:55PM

14
#1526 - Joseph Nam / @josephknam

10/15/2015 at 10:22PM

14
#1527 - Anshu Avinash / @anshu_avinash

10/17/2015 at 09:03PM

14
#1528 - merphant / @merphant

10/22/2015 at 06:48AM

14
#1529 - Joe Ruder / @joeruder42

10/28/2015 at 09:14PM

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

11/02/2015 at 04:09PM