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):
16
#2251 - Thomas / @moatra

04/21/2015 at 03:58AM

16
#2252 - Nathan LaVeck / @nslaveck

04/22/2015 at 10:51PM

16
#2253 - Sascha Fricke / @frgVFX

04/25/2015 at 11:41PM

16
#2254 - Sam Cristall / @sbcristall

04/28/2015 at 06:20PM

16
#2255 - for2nduse / @for2nduse

05/07/2015 at 10:14PM

16
#2256 - James Whiteman / @LucidSimple

05/10/2015 at 11:11PM

16
#2257 - Clark DuVall / @theclarkatron

05/15/2015 at 10:11PM

16
#2258 - Henrik Lindgren / @HeLi8one

05/17/2015 at 06:50PM

16
#2259 - superbriscoe / @superbriscoe

05/22/2015 at 06:01PM

16
#2260 - Jordy van Heeswijk / @JvH1983

05/25/2015 at 06:11PM

16
#2261 - Ammar Najjar / @ammarnajjar

05/25/2015 at 06:38PM

16
#2262 - ɹǝsnɐɥsıʇnɹ uoɾ / @JonRutis

05/27/2015 at 06:46PM

16
#2263 - eric roberts / @baileyeock

05/29/2015 at 01:28AM

16
#2264 - nona urbiz / @nospampleasemam

06/04/2015 at 05:34AM

16
#2265 - Maxime / @Maxime_VII

06/10/2015 at 01:10PM

16
#2266 - SP / @vimgolfer42

06/18/2015 at 11:20PM

16
#2267 - Junior Ales / @junior_ales

06/19/2015 at 05:03PM

16
#2268 - Sam Izdat / @_SandSaref

06/27/2015 at 08:16PM

16
#2269 - Cosme Buxin / @cosme_buxin

06/27/2015 at 08:21PM

16
#2270 - Alphan Yılmaz / @alphanyilmaz

06/28/2015 at 07:07AM

16
#2271 - Vim Viking / @vim_viking

07/02/2015 at 10:35PM

16
#2272 - Samir Sadek / @netsamir

07/17/2015 at 09:15PM

16
#2273 - aisapatino / @aisapatino

07/27/2015 at 05:04AM

16
#2274 - sabotage / @ay3uXCqqzZw8uvl

08/11/2015 at 06:02PM

16
#2275 - Marcin Sza / @coot_

08/15/2015 at 03:00PM

16
#2276 - Brendan Timmons / @BrendanTimmons

08/19/2015 at 12:43AM

16
#2277 - Martin Galpin / @MartinRGalpin

08/22/2015 at 10:40PM

16
#2278 - A / @Tower_1980

09/03/2015 at 12:32PM

16
#2279 - Andrew Michaud / @andrewjmichaud

09/08/2015 at 08:10PM

16
#2280 - vimgolf jonnyb / @vimgolf_jonnyb

09/10/2015 at 11:59AM