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):
10
#691 - NGM / @gmnimrod1

02/13/2018 at 02:11PM

10
#692 - en0 / @sgen0

02/16/2018 at 12:02AM

10
#693 - tadashi-aikawa / @Tadashi_MAMAN

02/17/2018 at 01:43AM

10
#694 - Alvaro / @VaroClemente

02/18/2018 at 09:48PM

10
#695 - z1505804@mvrht.net / @z150580

02/22/2018 at 07:48AM

10
#696 - bruno / @LokoPoggi

02/22/2018 at 11:59PM

10
#697 - Guirec CORBEL / @GuirecCorbel

02/25/2018 at 09:44PM

10
#698 - Simon Zeng / @KronicMan

02/27/2018 at 07:23PM

10
#699 - Maxim Zalata / @zalatik

03/02/2018 at 08:41PM

10
#700 - Jonathan Poisson / @_jpoisson_

03/06/2018 at 08:20PM

10
#701 - GreenPinguin / @GreenPinguin2

03/07/2018 at 03:40PM

10
#702 - azzal07 / @azzal07

03/08/2018 at 06:35PM

10
#703 - slicklash / @slicklash

03/08/2018 at 08:06PM

10
#704 - Jacky / @MrBearPan

03/09/2018 at 10:57AM

10
#705 - Chris Sutton / @cs1379320

03/12/2018 at 12:26AM

10
#706 - Lisa Ugray / @lisa_ugray

03/13/2018 at 01:29PM

10
#707 - jan4o / @jan4o_2

03/13/2018 at 10:27PM

10
#708 - Channing Chen / @jslgycm

03/19/2018 at 01:08PM

10
#709 - Aaron Williamson / @TheFunkOverlord

03/21/2018 at 08:17PM

10
#710 - Kubek2k / @kubek2k

03/23/2018 at 09:54PM

10
#711 - Skyler Soss / @Skyb0rg

03/27/2018 at 09:44PM

10
#712 - gerry / @ggaonag

03/29/2018 at 10:18PM

10
#713 - ewalk153 / @ewalk153

03/31/2018 at 11:23PM

10
#714 - kashikasitaro / @kashikasita

04/01/2018 at 02:49AM

10
#715 - platypusDancing / @platypusDancing

04/01/2018 at 09:18PM

10
#716 - towc / @MateiCopot

04/01/2018 at 09:18PM

10
#717 - chriskuck / @chriskuck

04/03/2018 at 05:55PM

10
#718 - Matt Fister / @Mistah_Fistah

04/14/2018 at 05:45AM

10
#719 - Frank Malone / @FrankMa00268686

04/14/2018 at 09:47AM

10
#720 - Andrzej WÄ…sowski / @AndrzejWasowski

04/17/2018 at 04:30PM