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

3854 active golfers, 14691 entries

Leaderboard (lowest score wins):
14
#1351 - Gabor Lekeny / @leki75

12/11/2014 at 12:26PM

14
#1352 - Jens Weggemann / @JensWeggemann

12/12/2014 at 05:35AM

14
#1353 - Martin Habovštiak / @kixunil

12/13/2014 at 10:06PM

14
#1354 - 1upまむ9 / @mamunine

12/16/2014 at 01:23PM

14
#1355 - Edward Brown / @ChazKato

12/16/2014 at 06:30PM

14
#1356 - kelevra / @kelevra19951823

12/17/2014 at 09:57PM

14
#1357 - きよ / @Mr_kiyo

12/18/2014 at 01:09PM

14
#1358 - ぷりケツにるぽ / @nillpo

12/19/2014 at 08:14AM

14
#1359 - Andrew Leung / @aleungpivotal

12/19/2014 at 08:00PM

14
#1360 - ゆきみ / @edp02

12/20/2014 at 11:14AM

14
#1361 - winterlight / @winterlight4

12/21/2014 at 11:16AM

14
#1362 - Lucas Groenendaal / @LucasGroenendaa

12/22/2014 at 03:06AM

14
#1363 - Maximiliano Padulo / @mpadulo

12/25/2014 at 10:29PM

14
#1364 - Jake Eskel / @JakeEskel

12/28/2014 at 06:02AM

14
#1365 - Paul / @paxlzi

12/28/2014 at 10:40PM

14
#1366 - yachi / @yaachi

12/29/2014 at 05:07AM

14
#1367 - Filipe Almeida / @filipe_almeida

12/31/2014 at 01:57AM

14
#1368 - kawas / @kawas44

01/01/2015 at 01:55PM

14
#1369 - Gwilym Kuiper / @gwilymk

01/04/2015 at 02:00PM

14
#1370 - David Wright / @David27Wright

01/08/2015 at 10:10PM

14
#1371 - blamitter ✏️ / @blamitter

01/09/2015 at 07:37PM

14
#1372 - Oli Lalonde / @o_lalonde

01/11/2015 at 08:57AM

14
#1373 - makohoek / @MattijsKorp

01/12/2015 at 12:40PM

14
#1374 - Ulysse Carion / @ucarion

01/13/2015 at 03:35AM

14
#1375 - Dr. Rev. J. "Paranoid Android" Kirchartz / @JKirchartz

01/14/2015 at 05:07AM

14
#1376 - low_ghost / @low_ghost_clone

01/17/2015 at 01:20PM

14
#1377 - Dmitry V. Alexeev / @alexeevdv

01/17/2015 at 02:39PM

14
#1378 - Aaron Whittington / @whittaaron

01/17/2015 at 11:30PM

14
#1379 - Christian Prehl / @prehlDE

01/19/2015 at 12:03PM

14
#1380 - Arno ℇrpenbeck / @javacgn

01/19/2015 at 12:12PM