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

4059 active golfers, 15531 entries

Leaderboard (lowest score wins):
15
#2011 - Deepak Surti / @dmsurti

03/13/2015 at 01:07PM

15
#2012 - chrisheithoff / @chrisheithoff

03/14/2015 at 03:35PM

15
#2013 - Алексей Матюшкин / @mudasobwa

03/15/2015 at 08:32AM

15
#2014 - Anoop Kumar / @anooplive

03/16/2015 at 12:43AM

15
#2015 - Travis Barber / @tbarber350

03/23/2015 at 12:40AM

15
#2016 - Ryan Kuczka / @ryan_kuczka

03/23/2015 at 09:25PM

15
#2017 - Pulkit Data / @DataPulkit

03/30/2015 at 03:47PM

15
#2018 - ushumpei / @ushumpei_

04/05/2015 at 09:34AM

15
#2019 - kykyshka / @kykyshka91

04/13/2015 at 08:57PM

15
#2020 - simonced / @simonced

04/16/2015 at 03:53AM

15
#2021 - Pimzero / @pimzer0

04/18/2015 at 12:10AM

15
#2022 - horace / @hor1ace

04/23/2015 at 02:15PM

15
#2023 - Ryan Glassett / @rollsavager

04/23/2015 at 05:12PM

15
#2024 - Chase Vasic / @ChaseVasic

04/26/2015 at 07:17PM

15
#2025 - Marc-Antoine Sauvé / @masauve_ac

04/26/2015 at 11:13PM

15
#2026 - ところたん / @tokoro10g

04/30/2015 at 07:57AM

15
#2027 - たんたる / @tantal_mech

05/07/2015 at 12:15AM

15
#2028 - Chi Bong Ho / @chibongho

05/07/2015 at 01:30AM

15
#2029 - vimgolfuser / @vimgolfuser_

05/08/2015 at 06:31AM

15
#2030 - Chris / @crr0004

05/12/2015 at 07:01AM

15
#2031 - Yannick / @yannack

05/22/2015 at 10:34AM

15
#2032 - wlads / @wlads

05/22/2015 at 09:55PM

15
#2033 - Stefan Knudsen / @knud32

05/25/2015 at 04:41AM

15
#2034 - Bruce Woodward / @Bruce_Woodward

05/25/2015 at 10:00PM

15
#2035 - Florent F. / @floff01

06/09/2015 at 11:37AM

15
#2036 - hidnasio / @hidnasio

06/15/2015 at 01:11AM

15
#2037 - Seth Yoder / @McMire315

06/23/2015 at 04:56PM

15
#2038 - Mathew Abado / @MathewAbado

07/02/2015 at 01:01AM

15
#2039 - Dominique van de Vor / @dvdvorle

07/14/2015 at 08:39PM

15
#2040 - Christopher MCA / @christopherMCA

07/17/2015 at 03:35AM