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

3919 active golfers, 14960 entries

Leaderboard (lowest score wins):
17
#2821 - tskepla / @tskepla

10/17/2018 at 10:46AM

17
#2822 - Jan Wedekind / @wedesoft

10/24/2018 at 09:02PM

17
#2823 - Sam Calvert / @Sammcalvertt

11/01/2018 at 01:55AM

17
#2824 - Kasparas Lavrukaitis / @kaslvr

11/01/2018 at 02:04PM

17
#2825 - peter.xiao / @yoco315

11/09/2018 at 10:26AM

17
#2826 - Chris Maher / @chrismaherthe

11/15/2018 at 02:06AM

17
#2827 - LucaSimplon / @LucaSimplon

11/16/2018 at 10:44AM

17
#2828 - dyson dark / @U9gJt7mOEOjbRN7

11/17/2018 at 05:39PM

17
#2829 - Random / @Random29985999

11/19/2018 at 02:21AM

17
#2830 - Sören Schellhoff / @Jackokomm

11/19/2018 at 03:50PM

17
#2831 - robinro / @robinro

11/22/2018 at 08:34PM

17
#2832 - Performa / @performa6400

11/27/2018 at 01:31PM

17
#2833 - Jonathan Gin / @jonathangin52

12/02/2018 at 06:21PM

17
#2834 - Cocquecigrues / @cocquecigrues

12/17/2018 at 08:11PM

17
#2835 - Scott Voyles / @zeitchef

12/25/2018 at 05:45PM

17
#2836 - Dario Avitabile / @tutticapaci

01/04/2019 at 03:22PM

17
#2837 - Igor Potceluev / @4eppelin

01/06/2019 at 09:43PM

17
#2838 - alaric27 / @alaric272

01/08/2019 at 10:20AM

17
#2839 - John Smith / @JohnSmi14480159

01/09/2019 at 10:53PM

17
#2840 - Kyle Safran / @kylesafran

01/18/2019 at 05:50PM

17
#2841 - Nick Lucent / @NickLucent

02/22/2019 at 09:05PM

17
#2842 - algebraic-geometric / @algebraicgeome1

02/23/2019 at 02:48PM

17
#2843 - Alexander Popov / @Alexand01782341

03/05/2019 at 03:20PM

17
#2844 - Stefan Käser / @stivi_kivi

03/22/2019 at 08:38AM

17
#2845 - whatstheirbucket / @whatstheirbuckt

03/29/2019 at 04:26PM

17
#2846 - EarthToAbigail / @EarthAbigail

04/02/2019 at 10:49AM

17
#2847 - Mark Brouwers / @fryght

04/05/2019 at 04:17PM

17
#2848 - Banner B. Schafer / @BannerBSchafer

04/08/2019 at 04:28AM

17
#2849 - Mike C / @StrixVariaXIX

04/22/2019 at 01:42PM

17
#2850 - Dan Nestor / @dandrestor

04/26/2019 at 10:42AM