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

4060 active golfers, 15536 entries

Leaderboard (lowest score wins):
11
#1141 - abgalphabet / @abgalphabet

01/13/2019 at 04:05AM

11
#1142 - Mangeart Yoric / @yoricm

01/17/2019 at 01:36PM

11
#1143 - bajidu / @bajidu

01/27/2019 at 12:03AM

11
#1144 - Marc Päpper / @mpaepper

01/28/2019 at 01:27PM

11
#1145 - Benoit Benoit / @Benoit_Tgt

01/29/2019 at 09:27PM

11
#1146 - 默罕默德 / @Rt6RjEAJ987Woes

01/31/2019 at 01:01PM

11
#1147 - Zach Russell / @ZacharyRRussell

02/07/2019 at 04:42AM

11
#1148 - LUTZ Jean / @Croustibot

02/27/2019 at 10:51AM

11
#1149 - Amado Antonini / @AmadoAntonini

03/08/2019 at 12:06PM

11
#1150 - 李超 / @lichaorodxx

03/10/2019 at 06:11AM

11
#1151 - Brad Daniels / @JBradDaniels

03/29/2019 at 02:22AM

11
#1152 - Antoine Gagelin / @AntoineGagelin

03/29/2019 at 04:26PM

11
#1153 - David A. Lyon / @dauglyon

03/29/2019 at 05:47PM

11
#1154 - hoge2341836 / @RootShunsuke

04/07/2019 at 03:32AM

11
#1155 - Fredrik Bjerkås / @fbjerkas

04/22/2019 at 12:58AM

11
#1156 - Luis Copetti / @lhcopetti

05/23/2019 at 01:24AM

11
#1157 - ささ / @nick11033

07/27/2019 at 12:16PM

11
#1158 - Hamza Shahid / @Zecuria

07/30/2019 at 12:57AM

11
#1159 - Mens Jender / @Todesshnizzle

07/30/2019 at 09:49PM

11
#1160 - Bradley M. Small / @BradleySmall

08/02/2019 at 03:31AM

11
#1161 - Joel Elkins / @dice_tea

08/02/2019 at 03:16PM

11
#1162 - Jake Treacher / @jaketreacher

08/16/2019 at 08:57AM

11
#1163 - Marco Mannucci / @markomannux

08/23/2019 at 06:12PM

11
#1164 - Jonghyun Yun / @JonghyunYun

09/03/2019 at 01:46AM

11
#1165 - ErQ325 / @EQ325

10/13/2019 at 09:49AM

11
#1166 - leo / @leo28356948

10/17/2019 at 07:40AM

11
#1167 - Константин / @pillar_vandyke

10/17/2019 at 07:08PM

11
#1168 - Pierroninio / @uftos

10/25/2019 at 01:54PM

11
#1169 - Lory / @Lory46845742

10/30/2019 at 08:00AM

11
#1170 - Tokos Apos / @AposTokosapos

11/04/2019 at 10:11AM