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
#1111 - Taylor Andrews / @xtaylorandrewsx

09/02/2015 at 01:14AM

11
#1112 - Andrew Maiden / @andrew__maiden

10/26/2015 at 10:23AM

11
#1113 - oscar / @zonza_mas

02/04/2016 at 06:13PM

11
#1114 - Stephen Watkin / @stephen_watkin

10/06/2017 at 02:20PM

11
#1115 - BouboulouVimGolf / @BouboulouVG

10/31/2017 at 04:18PM

11
#1116 - mike / @bal6219

12/06/2017 at 03:29PM

11
#1117 - Nush / @NUSH06

02/01/2018 at 03:59PM

11
#1118 - vimgolf / @myspare307

02/03/2018 at 08:23AM

11
#1119 - vimgolfer / @vimgolfinger

02/16/2018 at 11:39AM

11
#1120 - Meda Marisela / @LongbowMeda

03/09/2018 at 02:05AM

11
#1121 - Nicolas de C. / @nico2che

03/30/2018 at 02:45PM

11
#1122 - Eugene / @youjeannn

05/04/2018 at 06:39PM

11
#1123 - Marchand Paul-Valère / @pvmarch

05/25/2018 at 07:29AM

11
#1124 - Jack Phelan / @bytesandwich1

06/16/2018 at 05:44AM

11
#1125 - Timo Kluck / @timo_kluck

06/16/2018 at 10:04AM

11
#1126 - Joachim / @jodles89

07/02/2018 at 02:08AM

11
#1127 - 赤佐田奈葉 / @akasatanaha_

07/13/2018 at 06:32AM

11
#1128 - Francesco Sacchi / @depsir

07/14/2018 at 02:19PM

11
#1129 - yqu212 / @yqu212

07/26/2018 at 01:40PM

11
#1130 - Rajesh Sharma / @deepredsky

07/29/2018 at 06:25PM

11
#1131 - Samuel Hsiang / @alwayswimmin

08/05/2018 at 01:06AM

11
#1132 - Bobby Showalter / @bobbyshowalter

08/07/2018 at 07:38PM

11
#1133 - Daichi / @daichi1014

08/16/2018 at 03:15AM

11
#1134 - Simon Ingelsson / @_DeVVaN_

08/16/2018 at 09:48AM

11
#1135 - A E / @aechirps

09/11/2018 at 08:19PM

11
#1136 - Sam Kim / @samkimhis

10/12/2018 at 06:29PM

11
#1137 - nobody that important / @nobodythatimpo2

10/13/2018 at 10:20PM

11
#1138 - Tri Cao / @TriCao19

10/27/2018 at 01:52AM

11
#1139 - fdsafewfw / @fdsafewfw

11/06/2018 at 12:11PM

11
#1140 - Nedal Kouissi / @n3d41

11/09/2018 at 01:01AM