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):
12
#1141 - leroy / @leroyalien

02/22/2016 at 06:41AM

12
#1142 - Jaron Hamlik / @jdhamlik

02/27/2016 at 02:48AM

12
#1143 - Oleg Kravchenko / @olegkravchenk10

02/29/2016 at 06:28AM

12
#1144 - Dimitar Dimitrov / @kurkale6ka

03/08/2016 at 03:13PM

12
#1145 - Roman Degrik / @r_Cassum

03/28/2016 at 09:11AM

12
#1146 - Vaughn Cato / @vaughncato

04/04/2016 at 05:17AM

12
#1147 - Robert Carmosino / @Cryptic_Storm

04/09/2016 at 07:57AM

12
#1148 - qrt145 / @qrt145

04/15/2016 at 11:52AM

12
#1149 - Malte R / @maltoe

05/11/2016 at 08:24AM

12
#1150 - Elliott Beach / @718282Beach

06/03/2016 at 04:14AM

12
#1151 - testerdev12345 / @program51621955

06/03/2016 at 02:45PM

12
#1152 - Ben Hill / @KaizenSoze70

06/08/2016 at 11:44AM

12
#1153 - f00b8tr / @f00b8tr5

06/15/2016 at 04:38AM

12
#1154 - Ram Tamtam / @ramtamtamtam

06/21/2016 at 01:43PM

12
#1155 - Reuben Huxley / @missiontocode

06/29/2016 at 06:24AM

12
#1156 - Павел Игоревич / @VizierST

06/29/2016 at 10:47PM

12
#1157 - Alex Rod. / @thealex23ro

06/30/2016 at 01:36AM

12
#1158 - Matthieu avec deux T / @meschatt

07/01/2016 at 05:29PM

12
#1159 - Jeremiah Goyette / @JeremiahGoyette

08/05/2016 at 06:02AM

12
#1160 - Restroom Sounds / @RestroomSounds

08/05/2016 at 01:43PM

12
#1161 - exp977 / @exp977

08/19/2016 at 06:32AM

12
#1162 - Winfried Puchinger / @winpuc

08/19/2016 at 09:21PM

12
#1163 - Matteo Signer / @MatteoSigner

08/29/2016 at 09:12AM

12
#1164 - Eric Nielsen / @ericbn8

09/04/2016 at 12:53AM

12
#1165 - ymmtmdk / @ymmtmdk

09/04/2016 at 12:08PM

12
#1166 - Ameer Ayoub / @magicmeeror

09/17/2016 at 07:17PM

12
#1167 - Igor Czerwinski / @igoratron

10/20/2016 at 10:42PM

12
#1168 - Brian Phelps / @electronjunkie

10/23/2016 at 07:22PM

12
#1169 - Jakob / @jajob

10/28/2016 at 02:42PM

12
#1170 - yorkbai / @baiyqmzqbl

11/14/2016 at 10:23AM