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

3854 active golfers, 14691 entries

Leaderboard (lowest score wins):
16
#2191 - Г.Булгантамир / @mrUnagaldai

11/21/2014 at 06:05AM

16
#2192 - Dylan Tomas Meissner / @ickypop

11/23/2014 at 01:16AM

16
#2193 - Andy Dirnberger / @dirn

11/25/2014 at 06:26PM

16
#2194 - Bernard Wolff / @bernard_wolff

11/26/2014 at 04:25PM

16
#2195 - Roberto Alegro / @robertoaall

11/30/2014 at 03:57AM

16
#2196 - Mattiassich Ákos / @mattiassicha

12/01/2014 at 04:59PM

16
#2197 - Pawan Pawar / @guru_gyaan

12/02/2014 at 05:31AM

16
#2198 - Mike Chen / @chagel

12/02/2014 at 08:06AM

16
#2199 - Test User / @TestUserIgnore

12/04/2014 at 07:33PM

16
#2200 - Soren Bjornstad / @scorchgeek

12/04/2014 at 09:46PM

16
#2201 - Scott O'Hara / @scottohara_

12/05/2014 at 04:03AM

16
#2202 - Austin Smith / @AssailantLF

12/05/2014 at 07:24PM

16
#2203 - Anubhav / @anubhav1691

12/07/2014 at 11:30AM

16
#2204 - magana / @maganacorrupt

12/12/2014 at 01:57PM

16
#2205 - Raphael / @rnstlr

12/12/2014 at 04:12PM

16
#2206 - r. / @rmarvie

12/19/2014 at 09:42AM

16
#2207 - Joshua Greeenberg / @JoshuaGreeenber

12/19/2014 at 10:06AM

16
#2208 - Yuval Goncz / @YGoncho

12/22/2014 at 04:23PM

16
#2209 - Dave Getzinger / @DaveGetzinger

12/24/2014 at 09:02AM

16
#2210 - 曾鹏文 / @ZengPengWen

12/26/2014 at 02:58PM

16
#2211 - Tact Overflow / @muppling

12/29/2014 at 09:07AM

16
#2212 - Gary Verhaegen / @gaverhae

12/30/2014 at 02:15PM

16
#2213 - Jason Garber / @jasongarber

01/01/2015 at 02:19PM

16
#2214 - Alex Foster / @alexjfno1

01/02/2015 at 01:46PM

16
#2215 - AA / @john42luke

01/02/2015 at 06:11PM

16
#2216 - Doug Sheffer / @desheffer

01/09/2015 at 05:38AM

16
#2217 - Alexey Kalinin / @hsalkaline

01/10/2015 at 11:46PM

16
#2218 - Barrios Blue / @barriosblue

01/14/2015 at 05:14AM

16
#2219 - Joseph Roberts / @joey9801

01/23/2015 at 01:51PM

16
#2220 - Gary Liddon / @gyratory

01/30/2015 at 09:14AM