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

3761 active golfers, 14294 entries

Leaderboard (lowest score wins):
14
#1351 - いっこつ / @eZb4

02/03/2015 at 06:15PM

14
#1352 - engy / @engydmw

02/03/2015 at 09:04PM

14
#1353 - か◯りえ / @katorie

02/04/2015 at 05:42AM

14
#1354 - Jeremy Banzhaf / @jeremybanzhaf

02/04/2015 at 12:49PM

14
#1355 - supasnashbuhl / @supasnashbuhl

02/08/2015 at 12:22AM

14
#1356 - marcusmichaely / @marcus_michaely

02/08/2015 at 12:42AM

14
#1357 - xieyh11 / @xieyh11

02/13/2015 at 03:33AM

14
#1358 - Алексанр Цыганков / @capybarov

02/13/2015 at 03:18PM

14
#1359 - Kareeeeem / @VegetableBlanka

02/14/2015 at 01:11PM

14
#1360 - Arturo Volpe / @CochoVolpe

02/23/2015 at 12:15PM

14
#1361 - Josh Hartigan / @joshhartigan

02/23/2015 at 05:16PM

14
#1362 - Jeremie / @jermoer

02/23/2015 at 10:45PM

14
#1363 - An / @holidayrocket

02/24/2015 at 05:07PM

14
#1364 - Daniel Hill / @tubamaniaman

02/26/2015 at 10:07PM

14
#1365 - Nathan Bullock / @c1410a

02/28/2015 at 08:58AM

14
#1366 - ylletyll / @ylletyll

03/01/2015 at 07:57AM

14
#1367 - Кисы / @ubermuschi

03/01/2015 at 01:24PM

14
#1368 - nope / @nope_gknobup

03/01/2015 at 08:53PM

14
#1369 - Mariano Macchi / @mmacchif

03/01/2015 at 09:48PM

14
#1370 - Anand Gaitonde / @UsedRecently

03/07/2015 at 11:23PM

14
#1371 - Ricky / @dechimp

03/08/2015 at 07:38AM

14
#1372 - Marcin Brański / @3h4xx

03/08/2015 at 09:08PM

14
#1373 - Mikael Saltzman / @MikaelSaltzman

03/09/2015 at 11:29PM

14
#1374 - Karol Katerżawa / @CharlieQbx

03/11/2015 at 02:05PM

14
#1375 - basilest / @basilest

03/13/2015 at 07:43PM

14
#1376 - Sigurður Ægir Jónsso / @siggiae

03/14/2015 at 01:26PM

14
#1377 - Rohan Orton / @rohan_orton

03/15/2015 at 12:17AM

14
#1378 - Louis Caruana / @louiecaruana

03/19/2015 at 03:55AM

14
#1379 - Oleg Alfalfa / @6alfalfa9

03/19/2015 at 11:56AM

14
#1380 - Georgi Georgiev / @GeorgievGeorgeS

03/19/2015 at 04:54PM