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

3962 active golfers, 15136 entries

Leaderboard (lowest score wins):
16
#2341 - aisapatino / @aisapatino

07/27/2015 at 05:04AM

16
#2342 - sabotage / @ay3uXCqqzZw8uvl

08/11/2015 at 06:02PM

16
#2343 - Marcin Sza / @coot_

08/15/2015 at 03:00PM

16
#2344 - Brendan Timmons / @BrendanTimmons

08/19/2015 at 12:43AM

16
#2345 - Martin Galpin / @MartinRGalpin

08/22/2015 at 10:40PM

16
#2346 - A / @Tower_1980

09/03/2015 at 12:32PM

16
#2347 - Andrew Michaud / @andrewjmichaud

09/08/2015 at 08:10PM

16
#2348 - vimgolf jonnyb / @vimgolf_jonnyb

09/10/2015 at 11:59AM

16
#2349 - Mika .B / @Michael_Ben_Ali

09/10/2015 at 02:29PM

16
#2350 - Stani Banani / @Stani_Banani

09/10/2015 at 10:30PM

16
#2351 - Ben Vandervalk / @benvvalk

09/14/2015 at 03:25AM

16
#2352 - Matt Lappin / @TheRealLapster

09/18/2015 at 05:54AM

16
#2353 - Slavisa Djukic / @ssdjuka

09/21/2015 at 03:56AM

16
#2354 - Mikołaj Morzy / @MikolajMorzy

09/29/2015 at 08:14PM

16
#2355 - Dario Iacampo / @JackNova

10/10/2015 at 09:35PM

16
#2356 - Jacob Beal / @_caliburnus

10/10/2015 at 09:49PM

16
#2357 - roboguy / @roboguy

10/18/2015 at 07:52PM

16
#2358 - Arseny Zarechnev / @evindor

10/22/2015 at 04:01PM

16
#2359 - Bogumił Kamiński / @BogumilKaminski

10/25/2015 at 05:19PM

16
#2360 - ORchard test / @BilboBrovall

10/26/2015 at 01:22PM

16
#2361 - Paul Hornsey / @MadDogNinja

10/29/2015 at 02:20PM

16
#2362 - ハチポケッツ / @8pockets

11/09/2015 at 11:42PM

16
#2363 - C / @c_getTweet

11/18/2015 at 05:47AM

16
#2364 - jabashque / @jabashque

12/05/2015 at 09:07AM

16
#2365 - Patrick Mitchell / @jpmitche11

12/06/2015 at 03:30AM

16
#2366 - n0nick / @n0nick

12/09/2015 at 11:47AM

16
#2367 - Bingyunx / @bingyunx

12/25/2015 at 01:41AM

16
#2368 - hammboning / @_PuttPirates_

01/13/2016 at 07:02PM

16
#2369 - Jasbir Singh / @jasbirsingh11

01/16/2016 at 04:26PM

16
#2370 - Elias Nyström / @nighstrom

01/26/2016 at 01:35PM