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
#1381 - Иоаннъ / @Vaneskot

01/20/2015 at 03:11PM

14
#1382 - Orlov Sergey / @OrlovSA

01/21/2015 at 05:54AM

14
#1383 - SuperJediWombat / @SuperJediWombat

01/22/2015 at 01:16PM

14
#1384 - Adam Stankiewicz / @sheerun

01/25/2015 at 07:30PM

14
#1385 - Shahaf A / @Av3r4ge

01/25/2015 at 09:31PM

14
#1386 - no name / @vimgol

01/27/2015 at 07:12PM

14
#1387 - Will Nicht / @kein_name_fuer

01/31/2015 at 03:33PM

14
#1388 - Stephen Crosby / @stevecrozz

02/03/2015 at 06:10AM

14
#1389 - いっこつ / @eZb4

02/03/2015 at 06:15PM

14
#1390 - engy / @engydmw

02/03/2015 at 09:04PM

14
#1391 - か◯りえ / @katorie

02/04/2015 at 05:42AM

14
#1392 - Jeremy Banzhaf / @jeremybanzhaf

02/04/2015 at 12:49PM

14
#1393 - supasnashbuhl / @supasnashbuhl

02/08/2015 at 12:22AM

14
#1394 - marcusmichaely / @marcus_michaely

02/08/2015 at 12:42AM

14
#1395 - xieyh11 / @xieyh11

02/13/2015 at 03:33AM

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

02/13/2015 at 03:18PM

14
#1397 - Kareeeeem / @VegetableBlanka

02/14/2015 at 01:11PM

14
#1398 - Arturo Volpe / @CochoVolpe

02/23/2015 at 12:15PM

14
#1399 - Josh Hartigan / @joshhartigan

02/23/2015 at 05:16PM

14
#1400 - Jeremie / @jermoer

02/23/2015 at 10:45PM

14
#1401 - An / @holidayrocket

02/24/2015 at 05:07PM

14
#1402 - Daniel Hill / @tubamaniaman

02/26/2015 at 10:07PM

14
#1403 - Nathan Bullock / @c1410a

02/28/2015 at 08:58AM

14
#1404 - ylletyll / @ylletyll

03/01/2015 at 07:57AM

14
#1405 - Кисы / @ubermuschi

03/01/2015 at 01:24PM

14
#1406 - nope / @nope_gknobup

03/01/2015 at 08:53PM

14
#1407 - Mariano Macchi / @mmacchif

03/01/2015 at 09:48PM

14
#1408 - Anand Gaitonde / @UsedRecently

03/07/2015 at 11:23PM

14
#1409 - Ricky / @dechimp

03/08/2015 at 07:38AM

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

03/08/2015 at 09:08PM