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
#1471 - Charles Martin / @instinctive

05/12/2015 at 03:51PM

14
#1472 - Tom van der Lee / @TomVdLee

05/13/2015 at 07:17AM

14
#1473 - Emil Soman / @emilsoman

05/17/2015 at 04:52PM

14
#1474 - Rho's SB / @rhossb

05/19/2015 at 03:49AM

14
#1475 - Philippe Voinov / @tehwalris

05/19/2015 at 03:19PM

14
#1476 - François Marais / @maraisf

05/21/2015 at 07:05PM

14
#1477 - Fábio Perez / @fabioperez

05/26/2015 at 09:38PM

14
#1478 - David Rogers / @al_the_x

05/27/2015 at 09:39PM

14
#1479 - STOOFAN / @guacpowercrunch

05/28/2015 at 06:44AM

14
#1480 - Marc Coquand / @MarcCoquand

05/28/2015 at 10:28PM

14
#1481 - Adetque / @Adetque

05/29/2015 at 07:46AM

14
#1482 - Ghoot Emaho / @GhootEmaho

05/31/2015 at 03:24PM

14
#1483 - Sir Chauffeur / @sebdul

06/01/2015 at 01:14PM

14
#1484 - Rob Wise / @RobAWise

06/01/2015 at 11:24PM

14
#1485 - Max Br / @maxbr91

06/03/2015 at 08:51PM

14
#1486 - Vitalii / @veelenga

06/08/2015 at 09:14AM

14
#1487 - Vinícius Zambaldi / @fzvinicius

06/08/2015 at 11:16PM

14
#1488 - sehe / @sehetw

06/09/2015 at 02:18PM

14
#1489 - How Si Wei / @houxiwu

06/10/2015 at 12:20PM

14
#1490 - damien farce / @only15letters

06/10/2015 at 09:14PM

14
#1491 - Quota / @Quotad

06/12/2015 at 09:51AM

14
#1492 - Ian KP / @sample

06/12/2015 at 05:49PM

14
#1493 - raghu erapaneedi / @raghue9

06/19/2015 at 09:42AM

14
#1494 - Paul / @MapCalculator

06/22/2015 at 11:31PM

14
#1495 - John Freeman / @TheJohnFreeman

06/24/2015 at 02:06AM

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

06/25/2015 at 02:25PM

14
#1497 - Geoff Gu / @geoff_gu

06/26/2015 at 02:49PM

14
#1498 - Mike DeBruyn / @djroot2

07/03/2015 at 02:10AM

14
#1499 - Cakejoke / @Cakejoke

07/05/2015 at 02:23PM

14
#1500 - aze / @aze_rg

07/20/2015 at 06:22AM