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):
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

10
#1033 - 六弦 / @liuxian1990

06/06/2020 at 05:54AM

10
#1034 - speisz / @speiszc

06/08/2020 at 08:54PM

10
#1035 - Jake / @Jake88567157

06/12/2020 at 03:26PM

10
#1036 - Micael Jarniac / @MicaelJarniac

06/14/2020 at 12:31AM

10
#1037 - vimgolfo / @vimgolfo

06/19/2020 at 09:28PM

10
#1038 - dirkrob / @dirkrob1

06/20/2020 at 12:06AM

10
#1039 - もりを / @morio_prog

06/20/2020 at 02:36AM

10
#1040 - mocihan / @mocihan

06/29/2020 at 12:59PM

10
#1041 - The Oalrus / @mizay7

06/30/2020 at 10:16PM

10
#1042 - 大矢元海 / @008Genkai

07/01/2020 at 02:44AM

10
#1043 - Mitchell Horning / @HorningMitchell

07/03/2020 at 11:21PM

10
#1044 - PK / @pkeugine

07/10/2020 at 04:20PM

10
#1045 - Виталий Макаров / @avada_keda_bra

07/15/2020 at 09:19PM

10
#1046 - mp / @mp28812322

07/17/2020 at 06:34PM

10
#1047 - JL T / @l0f4r0

07/19/2020 at 06:45PM

10
#1048 - matteo / @matteo55169132

07/19/2020 at 11:44PM

10
#1049 - Ángel Durán / @AngeeelD

07/20/2020 at 10:46PM

10
#1050 - Saurabh / @Saurabh09299

07/22/2020 at 06:23AM