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
#1201 - dayshade / @dayshade_7

09/01/2017 at 09:01AM

12
#1202 - Markus Bohl / @bohl_markus

09/09/2017 at 07:44PM

12
#1203 - harpocrates744 / @harpocrates744

09/10/2017 at 10:30PM

12
#1204 - Cyhors / @Cyhors

09/13/2017 at 03:50PM

12
#1205 - elmoloves / @ElmoLovesSilly

09/19/2017 at 11:16PM

12
#1206 - xer0.5ive / @Bibekshah

09/22/2017 at 08:24PM

12
#1207 - Ewoud Smeur / @Ewoud90

09/29/2017 at 08:44AM

12
#1208 - Stephen Betts / @stephenbetts

10/03/2017 at 04:40PM

12
#1209 - Kai Hübner / @knollenkopp

10/24/2017 at 06:52PM

12
#1210 - Piotr Dołowy / @owy_do

11/06/2017 at 06:03PM

12
#1211 - Eric Johnson / @dej79

11/12/2017 at 04:31PM

12
#1212 - Hawk Newton / @hawknewton

11/13/2017 at 10:08PM

12
#1213 - QingyuZhao / @zhao_qingyu

11/21/2017 at 07:42AM

12
#1214 - deepak / @utopianmonk

12/23/2017 at 10:56PM

12
#1215 - Joe Kerian / @kerian

01/08/2018 at 09:25PM

12
#1216 - Luong Nguyen / @LuongNguyen_95

01/14/2018 at 07:46AM

12
#1217 - genoskill / @Genoskill

01/29/2018 at 01:07AM

12
#1218 - Infinity Delta / @InfinityDelta

01/31/2018 at 10:56PM

12
#1219 - Max Horn / @maexlich

03/02/2018 at 10:43PM

12
#1220 - Oleg Skillup / @skill_up

03/20/2018 at 07:10PM

12
#1221 - Vim Golf / @VimgolfVim

03/30/2018 at 03:18AM

12
#1222 - Jy / @PHP_is_the_best

04/15/2018 at 08:15PM

12
#1223 - Ben Sherman / @bensherman

04/25/2018 at 08:17PM

12
#1224 - Jack Shannon / @grokmotive

04/28/2018 at 09:44AM

12
#1225 - Jay Knight / @jayknight

05/04/2018 at 02:35PM

12
#1226 - Elite Hacker of the Light / @L3E7

05/08/2018 at 06:21AM

12
#1227 - Leila Loezer / @leilaloezer

06/02/2018 at 05:43PM

12
#1228 - r / @revanthedarth

06/06/2018 at 03:31AM

12
#1229 - fayard / @fayard43698270

06/08/2018 at 02:48PM

12
#1230 - Suzanne / @suzbotq

07/24/2018 at 11:49PM