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
#1171 - mogitate / @mutemeat

11/16/2019 at 07:18AM

11
#1172 - 李嘉浩 / @isundaylee

11/23/2019 at 02:21AM

11
#1173 - Vim Player / @PlayerVim

11/30/2019 at 08:31AM

11
#1174 - Brady Cornett / @BradyCornett

01/22/2020 at 07:00PM

11
#1175 - perTheGolfer / @GolferPer

02/17/2020 at 05:21PM

11
#1176 - eshel / @EshelBM

02/27/2020 at 03:54PM

11
#1177 - floyd / @floyd10086

03/01/2020 at 02:03AM

11
#1178 - vtls / @vtls16

03/14/2020 at 09:34AM

11
#1179 - 薛浩滎 / @iTPChbTeI4ZW9s3

03/15/2020 at 09:09PM

11
#1180 - vvaannaa3 / @vvaannaa3

03/20/2020 at 03:52PM

11
#1181 - Romeo Valentin / @Seecez

03/22/2020 at 11:51PM

11
#1182 - せいほう / @FICSQF

04/08/2020 at 01:06PM

11
#1183 - José / @AngelGaldamez

05/14/2020 at 12:49AM

11
#1184 - Sven Kõiv / @KoivSven

05/17/2020 at 10:22AM

11
#1185 - lpf / @yurisses

05/21/2020 at 05:56PM

11
#1186 - Andy / @ayy_ess_

05/23/2020 at 10:05PM

11
#1187 - Alek Mugnozzo / @mugnozzo

06/02/2020 at 09:27AM

11
#1188 - chocolate / @chocola81394123

06/02/2020 at 02:47PM

11
#1189 - betmaster / @betmstr

06/06/2020 at 05:45PM

11
#1190 - nico / @res_tantum

06/08/2020 at 09:39PM

11
#1191 - Romain / @djizeuscoco

06/10/2020 at 04:23PM

11
#1192 - nihilistCookie / @NihilistCookie

06/14/2020 at 01:32PM

11
#1193 - JLObject / @powful_panda

07/01/2020 at 07:40PM

11
#1194 - Alexandre MERLIN / @AlxMerlin

07/02/2020 at 04:34PM

11
#1195 - Adrián Delgado / @Caritativito

07/12/2020 at 01:38AM

11
#1196 - Norman Liu / @normanwliu

07/25/2020 at 11:39PM

11
#1197 - David Martínez / @g0ddrinksjava

08/08/2020 at 07:20PM

11
#1198 - Tanzeel Kazi / @tanzeelkazi

08/13/2020 at 09:19AM

11
#1199 - Marcio M Pereira / @iviarcio

09/06/2020 at 02:56AM

11
#1200 - Nick Edwards / @edwardsnjd

09/07/2020 at 04:38PM