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):
15
#2101 - Bobby Tables / @BobbyTables12

02/21/2019 at 07:59PM

15
#2102 - Bruce.Z.Lee / @cvilo4ZLK3OD9WG

02/27/2019 at 07:29AM

15
#2103 - vince / @vincentvangott

03/03/2019 at 12:31PM

15
#2104 - maq / @maq41476369

03/05/2019 at 03:00PM

15
#2105 - Saphire Lattice / @SaphireLattice

03/06/2019 at 05:15AM

15
#2106 - Groovy / @groovy9

03/06/2019 at 09:58PM

15
#2107 - Ashley Harvey / @ashleyharvey87

03/07/2019 at 09:14PM

15
#2108 - Seiichi Satomi / @Sewitch7045

03/12/2019 at 01:36PM

15
#2109 - zh0ng / @zh00ng

03/15/2019 at 09:46AM

15
#2110 - Duke Du / @DukeDu2

03/22/2019 at 02:39AM

15
#2111 - Grant / @grant_7788

04/26/2019 at 12:19AM

15
#2112 - tenfy / @tenfy4

04/30/2019 at 02:56AM

15
#2113 - Manos Koutselakis / @koutselakis_m

05/05/2019 at 01:06AM

15
#2114 - Jairo Suarez / @xyos

05/08/2019 at 09:04PM

15
#2115 - りょ / @ryoo141

05/10/2019 at 06:42AM

15
#2116 - Καράτε Μόνο / @karate_mono

05/15/2019 at 12:18PM

15
#2117 - Lingyu Yi / @LgxLingyu

05/16/2019 at 02:47AM

15
#2118 - Nick Anishenko / @NAnishenko

05/21/2019 at 10:53AM

15
#2119 - Paul Schaefer / @schaeferpp

05/24/2019 at 02:30PM

15
#2120 - deHman89 / @danho89

06/03/2019 at 01:43PM

15
#2121 - albalitz / @_albalitz

06/03/2019 at 01:53PM

15
#2122 - Chris G / @AboutThatThing

06/12/2019 at 08:21AM

15
#2123 - Fabien C. / @vaga_io

06/17/2019 at 10:40AM

15
#2124 - Etai Nativ / @enativ72

07/10/2019 at 07:08AM

15
#2125 - Patrick Ball / @vm_wylbur

07/12/2019 at 09:56PM

15
#2126 - Tim / @BusingTim

07/14/2019 at 07:57AM

15
#2127 - Bob Ren / @bobrenjc93

07/29/2019 at 09:06PM

15
#2128 - Ivo Blöchliger / @aigledesalpes

08/02/2019 at 02:45PM

15
#2129 - Luiz Eduardo Amaral / @_luxedo

08/09/2019 at 04:24PM

15
#2130 - Simon Wilkinson / @simondwilkinson

08/23/2019 at 09:29PM