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):
10
#1021 - River Jiang / @riverjiang

05/12/2020 at 08:22AM

10
#1022 - Commence Corporation / @CommenceCorp

05/13/2020 at 06:34PM

10
#1023 - Kevin Keefe / @KevinKeefe5

05/14/2020 at 05:27PM

10
#1024 - Jake Van Alstyne / @jake_va

05/14/2020 at 07:50PM

10
#1025 - whale / @Hari84444713

05/16/2020 at 08:11PM

10
#1026 - sh3lbst3r / @sh3lbst3r_irl

05/18/2020 at 10:31PM

10
#1027 - 于吉星 / @fishermryn

05/22/2020 at 11:20AM

10
#1028 - Christophe Robillard / @krichtof

05/22/2020 at 01:47PM

10
#1029 - Finlay l͓̽o͓̽c͓̽k͓̽e͓̽d͓̽d͓̽o͓̽w͓̽n͓̽ McAfee / @finsqm

05/26/2020 at 09:58PM

10
#1030 - Dirty Harry / @TateDirty

05/29/2020 at 09:45AM

10
#1031 - nbspAD / @AdNbsp

05/31/2020 at 02:36PM

10
#1032 - Amit Kumar / @amit_locham

05/31/2020 at 07:34PM

11
#1033 - LCD 47 / @lcd047

07/31/2015 at 11:41PM

11
#1034 - Taylor Andrews / @xtaylorandrewsx

09/02/2015 at 01:14AM

11
#1035 - Andrew Maiden / @andrew__maiden

10/26/2015 at 10:23AM

11
#1036 - oscar / @zonza_mas

02/04/2016 at 06:13PM

11
#1037 - Stephen Watkin / @stephen_watkin

10/06/2017 at 02:20PM

11
#1038 - BouboulouVimGolf / @BouboulouVG

10/31/2017 at 04:18PM

11
#1039 - mike / @bal6219

12/06/2017 at 03:29PM

11
#1040 - Nush / @NUSH06

02/01/2018 at 03:59PM

11
#1041 - vimgolf / @myspare307

02/03/2018 at 08:23AM

11
#1042 - vimgolfer / @vimgolfinger

02/16/2018 at 11:39AM

11
#1043 - Meda Marisela / @LongbowMeda

03/09/2018 at 02:05AM

11
#1044 - Nicolas de C. / @nico2che

03/30/2018 at 02:45PM

11
#1045 - Eugene / @youjeannn

05/04/2018 at 06:39PM

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

05/25/2018 at 07:29AM

11
#1047 - Jack Phelan / @bytesandwich1

06/16/2018 at 05:44AM

11
#1048 - Timo Kluck / @timo_kluck

06/16/2018 at 10:04AM

11
#1049 - Joachim / @jodles89

07/02/2018 at 02:08AM

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

07/13/2018 at 06:32AM