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

3955 active golfers, 15110 entries

Leaderboard (lowest score wins):
40
#3931 - Cawan Porto / @cawanporto

12/28/2017 at 05:48PM

40
#3932 - Lorenzo Swank / @lswank

01/06/2019 at 05:36AM

40
#3933 - MGJoe93 / @mgjoe93

03/02/2019 at 01:12PM

41
#3934 - hek / @hek

01/21/2015 at 07:27PM

42
#3935 - Briana Baker / @brianacodes

12/21/2018 at 09:46PM

44
#3936 - Tsatsi Mahase / @tsatsi_mahase

12/15/2014 at 06:16PM

44
#3937 - 阑珊灯火 / @PercyLixc

06/21/2018 at 12:40PM

44
#3938 - {{ profile.name }} / @bytesonly

04/20/2020 at 12:03PM

46
#3939 - @-----{} / @DavidAr99288709

10/14/2019 at 09:57AM

48
#3940 - shellfire32 / @shellfire32

11/25/2016 at 02:05PM

48
#3941 - Haishan / @carlhan

03/03/2017 at 04:47PM

48
#3942 - Matthias Kausl / @sig_segv

04/25/2019 at 06:24PM

49
#3943 - chenqiqi / @chenqiqi13

03/28/2019 at 05:03PM

51
#3944 - timebomb / @timebom44359375

01/25/2020 at 10:30PM

52
#3945 - Ilya Grigorik / @igrigorik

01/19/2015 at 06:00AM

52
#3946 - Larry Adames / @LarryAdames

07/04/2019 at 05:12PM

55
#3947 - Kun-chan / @kurochirochan

03/24/2015 at 12:53AM

57
#3948 - Hugo / @szeyattai

08/05/2018 at 08:10AM

58
#3949 - Douglas Detoni / @douglas_detoni

06/19/2015 at 05:01PM

65
#3950 - Lidiya Ponomareva / @LidiyaPonomare3

12/05/2019 at 06:43PM

65
#3951 - Justin Williams / @DRPEPPERGUY1

01/27/2020 at 07:24PM

66
#3952 - 박주영 / @xhgnVrQ6uUJOTnB

06/29/2018 at 08:35AM

75
#3953 - JerryChiu / @pv31508

08/18/2015 at 02:00PM

88
#3954 - Zac sliker / @Zacsliker

01/29/2020 at 04:05PM

216
#3955 - x / @am_zzz_zzz

05/12/2020 at 07:30AM