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
#1441 - Rob Wise / @RobAWise

06/01/2015 at 11:24PM

14
#1442 - Max Br / @maxbr91

06/03/2015 at 08:51PM

14
#1443 - Vitalii / @veelenga

06/08/2015 at 09:14AM

14
#1444 - Vinícius Zambaldi / @fzvinicius

06/08/2015 at 11:16PM

14
#1445 - sehe / @sehetw

06/09/2015 at 02:18PM

14
#1446 - How Si Wei / @houxiwu

06/10/2015 at 12:20PM

14
#1447 - damien farce / @only15letters

06/10/2015 at 09:14PM

14
#1448 - Quota / @Quotad

06/12/2015 at 09:51AM

14
#1449 - Ian KP / @sample

06/12/2015 at 05:49PM

14
#1450 - raghu erapaneedi / @raghue9

06/19/2015 at 09:42AM

14
#1451 - Paul / @MapCalculator

06/22/2015 at 11:31PM

14
#1452 - John Freeman / @TheJohnFreeman

06/24/2015 at 02:06AM

14
#1453 - Skúli Jóhannsson / @skulibj

06/25/2015 at 02:25PM

14
#1454 - Geoff Gu / @geoff_gu

06/26/2015 at 02:49PM

14
#1455 - Mike DeBruyn / @djroot2

07/03/2015 at 02:10AM

14
#1456 - Cakejoke / @Cakejoke

07/05/2015 at 02:23PM

14
#1457 - aze / @aze_rg

07/20/2015 at 06:22AM

14
#1458 - Florian Lücke / @CannibalGorilla

07/21/2015 at 07:37AM

14
#1459 - anonymous / @_nonymous

07/23/2015 at 11:51PM

14
#1460 - Serenium / @serenium

07/24/2015 at 12:37PM

14
#1461 - walkingsparrow / @walkingsparrow

07/24/2015 at 10:18PM

14
#1462 - McKay Ward / @mckayward

07/26/2015 at 01:09AM

14
#1463 - Matthew / @magee210

07/28/2015 at 12:13AM

14
#1464 - Peter B / @l0wm4x

07/28/2015 at 08:11AM

14
#1465 - Bakhti Aripov / @bakhti

07/29/2015 at 10:59AM

14
#1466 - randomizer user / @alsdkfhjlkadfha

07/30/2015 at 11:23AM

14
#1467 - Tim Vail / @timdvail

08/07/2015 at 03:16AM

14
#1468 - Albert Pumarola / @AlbertPumarola

08/07/2015 at 02:46PM

14
#1469 - Zak Greant / @zakgreant

08/07/2015 at 07:47PM

14
#1470 - Blake Tereau / @BlakeTereau

08/11/2015 at 02:25AM