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):
10
#991 - Sean Dewar / @seandewar

03/13/2020 at 03:10PM

10
#992 - Toby Hawkins / @Toby_Hawkins

03/14/2020 at 05:16PM

10
#993 - Alon Sandler / @AlonSandler

03/15/2020 at 06:26PM

10
#994 - Niklas Ydeb├Ąck / @Ydebaeck

03/15/2020 at 07:15PM

10
#995 - John Doe / @JohnDoe77150954

03/18/2020 at 12:17PM

10
#996 - Marco / @Marco24456514

03/21/2020 at 10:19PM

10
#997 - Robberechts Arne / @ArneRobberechts

03/22/2020 at 09:35PM

10
#998 - Yan Xue / @_yxue

03/23/2020 at 05:14AM

10
#999 - Nazar / @Nazar02204871

03/24/2020 at 11:14AM

10
#1000 - Alexander / @Alexand64026860

03/25/2020 at 02:25PM

10
#1001 - Rodrigo V. Lopes / @rodvlopes

03/26/2020 at 11:13PM

10
#1002 - koyumeishi / @koyumeishi_

03/27/2020 at 06:36PM

10
#1003 - relastle / @relastle

03/29/2020 at 05:19AM

10
#1004 - mury liang / @muryliang

04/05/2020 at 01:29AM

10
#1005 - gary sarkisian / @gesarki

04/10/2020 at 03:52AM

10
#1006 - rg thomas / @rgt47

04/11/2020 at 09:17PM

10
#1007 - kashikasitaro / @kashikasitaro

04/12/2020 at 06:43AM

10
#1008 - Moatvald / @moatvald

04/12/2020 at 02:39PM

10
#1009 - edvrds / @edvrds

04/12/2020 at 05:00PM

10
#1010 - Mateusz Eggink / @matheomate

04/13/2020 at 11:23AM

10
#1011 - Atzz / @AtzzCokeK

04/18/2020 at 06:34AM

10
#1012 - Sikker Rosendal / @srosendaldk

04/18/2020 at 11:11AM

10
#1013 - sherman / @sherman37029653

04/25/2020 at 02:20AM

10
#1014 - Victor / @victor_rma

04/25/2020 at 03:22PM

10
#1015 - Arthur Goodman / @ArthurGoodman3

04/29/2020 at 07:23PM

10
#1016 - bladehaze / @bladehaze

05/02/2020 at 01:21PM

10
#1017 - Bspammer / @Bspammer

05/06/2020 at 11:29PM

10
#1018 - Iliyapichugin / @iliyapichugin

05/07/2020 at 10:44PM

10
#1019 - WM / @WM97222391

05/10/2020 at 12:49AM

10
#1020 - Jeff Cui / @jeffacce

05/12/2020 at 07:32AM