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

3964 active golfers, 15145 entries

Leaderboard (lowest score wins):
18
#3091 - Tim Varley / @varleti

11/01/2017 at 10:25PM

18
#3092 - idle poze / @idlepoze

11/03/2017 at 02:03PM

18
#3093 - poster board / @mm_mut_mu11

11/09/2017 at 07:51AM

18
#3094 - not a lot / @of_what1

11/15/2017 at 05:34AM

18
#3095 - Thomas Barusseau / @ThomasBarusseau

12/06/2017 at 03:51PM

18
#3096 - Johannes Reuter / @johannes_reuter

12/07/2017 at 03:31PM

18
#3097 - Alan Zimmerman / @alan_zimm

12/11/2017 at 09:11PM

18
#3098 - Ike Y / @iyku

12/13/2017 at 01:26AM

18
#3099 - Mark Blakeney / @bulletmark

12/19/2017 at 01:50AM

18
#3100 - Ahmed Hasan / @ahmedrhasan

12/25/2017 at 06:06PM

18
#3101 - P. Bogaard / @Pepbogaard

01/21/2018 at 01:18AM

18
#3102 - phucvin / @phucvin

02/14/2018 at 03:59PM

18
#3103 - tapio / @gncnaxb

02/16/2018 at 01:57PM

18
#3104 - Dan Kolbman / @dankolbman

03/06/2018 at 03:11AM

18
#3105 - Paul Page / @theRealPaulPage

03/19/2018 at 09:25PM

18
#3106 - DQMSL対戦募集ツイートbot / @foronlinegamer

03/22/2018 at 06:22AM

18
#3107 - Jon Simpson / @NodeStreamer

03/22/2018 at 06:07PM

18
#3108 - David Pimentel / @daveypimentel

03/22/2018 at 09:33PM

18
#3109 - sdaf sdf / @fooz0b1bz

03/24/2018 at 01:53PM

18
#3110 - Mike / @SmokeSalmon2010

03/25/2018 at 02:19PM

18
#3111 - Anonymous / @Anonymous31658

03/27/2018 at 03:21AM

18
#3112 - Tim / @timothyscosta

03/30/2018 at 03:24PM

18
#3113 - ariel L / @arielzn

04/14/2018 at 01:18PM

18
#3114 - Shannon Brooks / @coder_shannon

04/17/2018 at 05:26PM

18
#3115 - Tuomo Syvänperä / @syvanpera

04/21/2018 at 04:42AM

18
#3116 - LimYoungChun / @teize001

04/21/2018 at 04:48PM

18
#3117 - Andy Tran / @andyxtran

04/23/2018 at 01:42AM

18
#3118 - Andreas Jostel / @ajomcr

04/25/2018 at 07:10PM

18
#3119 - David Jenkinson / @eighty8t8

04/26/2018 at 06:42AM

18
#3120 - Micah Halter / @mehalter

05/03/2018 at 07:09PM