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

3962 active golfers, 15136 entries

Leaderboard (lowest score wins):
15
#2101 - Subrata Sarker / @picklumithu

04/06/2018 at 05:38AM

15
#2102 - Marcos Almeida / @almeidamarcos_

04/08/2018 at 10:29AM

15
#2103 - c0llision / @sh3llcode

04/17/2018 at 10:42PM

15
#2104 - Yuki Sato / @yukibear_dev

04/23/2018 at 11:31PM

15
#2105 - Vanda Hendrychová / @vandiacutek

04/24/2018 at 03:14PM

15
#2106 - Michael Topal / @h4ckt1c

05/02/2018 at 06:29AM

15
#2107 - Francisco Giordano / @frangio_

05/03/2018 at 04:07AM

15
#2108 - Liam Chimes / @ChimesLiam

05/03/2018 at 02:01PM

15
#2109 - Owen Loughran / @_ObeseAnorexic_

05/04/2018 at 07:55AM

15
#2110 - bob / @vg41

05/05/2018 at 09:34PM

15
#2111 - Quade Morrison / @quade_morrison

05/07/2018 at 12:48AM

15
#2112 - Don Nguyen / @baodon2703

05/25/2018 at 06:48AM

15
#2113 - Linfeng Li·李林峰 / @llinfeng

05/29/2018 at 01:39PM

15
#2114 - nSinus-R / @nSinusR

05/30/2018 at 01:11PM

15
#2115 - oracle / @oracle24986322

06/08/2018 at 08:07AM

15
#2116 - javier castro / @eusipial

06/11/2018 at 06:44AM

15
#2117 - Christopher Oldfield / @humantree

06/19/2018 at 07:52AM

15
#2118 - Sergey Lisakov / @pozitron57

06/23/2018 at 04:56PM

15
#2119 - Tom ten Thij / @eco_coder

06/28/2018 at 03:06PM

15
#2120 - xarfg / @xarphg

06/29/2018 at 03:09PM

15
#2121 - Henry Woolenthorpe / @woolenthorpe

07/02/2018 at 09:38AM

15
#2122 - Xxax / @Xxax

07/02/2018 at 01:50PM

15
#2123 - mass / @mass256

07/06/2018 at 05:16AM

15
#2124 - Artsiom Kashkou / @pochka15

07/09/2018 at 06:33PM

15
#2125 - Ira Page / @ira__page

07/10/2018 at 05:55AM

15
#2126 - cliffroared / @cliffroared

07/17/2018 at 09:11PM

15
#2127 - jake worth / @jwworth

07/24/2018 at 11:53PM

15
#2128 - fucus / @fishlovebanana

07/26/2018 at 08:55AM

15
#2129 - Paul Inc / @hiniol1982

07/27/2018 at 04:00PM

15
#2130 - James Ford / @ACTIONJAMESMAN

07/28/2018 at 09:31PM