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

3761 active golfers, 14294 entries

Leaderboard (lowest score wins):
11
#1081 - Hamza Shahid / @Zecuria

07/30/2019 at 12:57AM

11
#1082 - Mens Jender / @Todesshnizzle

07/30/2019 at 09:49PM

11
#1083 - Bradley M. Small / @BradleySmall

08/02/2019 at 03:31AM

11
#1084 - Joel Elkins / @dice_tea

08/02/2019 at 03:16PM

11
#1085 - Jake Treacher / @jaketreacher

08/16/2019 at 08:57AM

11
#1086 - Marco Mannucci / @markomannux

08/23/2019 at 06:12PM

11
#1087 - Jonghyun Yun / @JonghyunYun

09/03/2019 at 01:46AM

11
#1088 - ErQ325 / @EQ325

10/13/2019 at 09:49AM

11
#1089 - leo / @leo28356948

10/17/2019 at 07:40AM

11
#1090 - Константин / @pillar_vandyke

10/17/2019 at 07:08PM

11
#1091 - Pierroninio / @uftos

10/25/2019 at 01:54PM

11
#1092 - Lory / @Lory46845742

10/30/2019 at 08:00AM

11
#1093 - Tokos Apos / @AposTokosapos

11/04/2019 at 10:11AM

11
#1094 - mogitate / @mutemeat

11/16/2019 at 07:18AM

11
#1095 - 李嘉浩 / @isundaylee

11/23/2019 at 02:21AM

11
#1096 - Vim Player / @PlayerVim

11/30/2019 at 08:31AM

11
#1097 - Brady Cornett / @BradyCornett

01/22/2020 at 07:00PM

11
#1098 - perTheGolfer / @GolferPer

02/17/2020 at 05:21PM

11
#1099 - eshel / @EshelBM

02/27/2020 at 03:54PM

11
#1100 - floyd / @floyd10086

03/01/2020 at 02:03AM

11
#1101 - vtls / @vtls16

03/14/2020 at 09:34AM

11
#1102 - 薛浩滎 / @iTPChbTeI4ZW9s3

03/15/2020 at 09:09PM

11
#1103 - vvaannaa3 / @vvaannaa3

03/20/2020 at 03:52PM

11
#1104 - Romeo Valentin / @Seecez

03/22/2020 at 11:51PM

11
#1105 - せいほう / @FICSQF

04/08/2020 at 01:06PM

11
#1106 - José / @AngelGaldamez

05/14/2020 at 12:49AM

11
#1107 - Sven Kõiv / @KoivSven

05/17/2020 at 10:22AM

11
#1108 - lpf / @yurisses

05/21/2020 at 05:56PM

11
#1109 - Andy / @ayy_ess_

05/23/2020 at 10:05PM

11
#1110 - Alek Mugnozzo / @mugnozzo

06/02/2020 at 09:27AM