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

4071 active golfers, 15593 entries

Leaderboard (lowest score wins):
11
#1201 - Norman Liu / @normanwliu

07/25/2020 at 11:39PM

11
#1202 - David Martínez / @g0ddrinksjava

08/08/2020 at 07:20PM

11
#1203 - Tanzeel Kazi / @tanzeelkazi

08/13/2020 at 09:19AM

11
#1204 - Marcio M Pereira / @iviarcio

09/06/2020 at 02:56AM

11
#1205 - Nick Edwards / @edwardsnjd

09/07/2020 at 04:38PM

11
#1206 - ZiTeng Pang / @ZitengP

09/13/2020 at 06:52PM

11
#1207 - hi I'm anxious ✨ / @startresse

10/07/2020 at 08:29PM

11
#1208 - Leland Paul Kusmer / @lelandpaul

10/21/2020 at 02:34AM

11
#1209 - MySelf / @okmslf

10/23/2020 at 06:48PM

11
#1210 - dahan / @dahan74265266

10/30/2020 at 06:46AM

11
#1211 - Arryue / @Arryue2

11/08/2020 at 05:53AM

11
#1212 - Duncan / @Duncan31503119

01/09/2021 at 12:29AM

12
#1213 - Matt / @mcr05

01/18/2015 at 07:59PM

12
#1214 - Alexey Kotov / @atercat

07/23/2015 at 12:46PM

12
#1215 - Christophe Sicard / @tophsic

08/23/2015 at 05:15AM

12
#1216 - Nicholas Marrone / @nickmarrone

09/05/2015 at 09:52PM

12
#1217 - Jon Nyman / @NymanJon

09/12/2015 at 08:54AM

12
#1218 - Jack Z / @itszhou

10/08/2015 at 04:32PM

12
#1219 - coltruindie / @e10nevwa

10/13/2015 at 11:20PM

12
#1220 - DespicableJerk / @JerkDespicable

10/20/2015 at 06:56AM

12
#1221 - Nick Miller / @ItsMeNickMiller

10/24/2015 at 08:05PM

12
#1222 - Bowen Deng / @DavidBdeng

11/06/2015 at 05:03AM

12
#1223 - NuM / @NuM314

11/07/2015 at 10:09AM

12
#1224 - Nam Net / @tafopigibi

11/07/2015 at 07:59PM

12
#1225 - Dane Summers / @dsummersl

11/15/2015 at 02:59PM

12
#1226 - Ryan Marcotte / @ryanjmarcotte

11/15/2015 at 05:40PM

12
#1227 - territorialmale / @territorialmale

11/18/2015 at 05:00PM

12
#1228 - emblox / @emblox

11/19/2015 at 10:03PM

12
#1229 - SK Liew / @liewsk

11/20/2015 at 02:28AM

12
#1230 - rantelo / @rantelo7

11/23/2015 at 09:39PM